File: mc_check.c

package info (click to toggle)
mlterm 3.1.2-1.3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 23,168 kB
  • sloc: ansic: 102,795; sh: 9,676; java: 2,018; perl: 1,601; makefile: 1,595; cpp: 771; sed: 16
file content (34 lines) | stat: -rw-r--r-- 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 *	$Id$
 */

#include  "mc_check.h"

#include  <kiklib/kik_debug.h>
#include  <glib.h>


#if  0
#define  __DEBUG
#endif


/* --- global functions --- */

GtkWidget *
mc_check_config_widget_new(
	char *  label ,
	int  is_checked
	)
{
	GtkWidget *  check ;

	check = gtk_check_button_new_with_label( label) ;

	if( is_checked)
	{
		gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(check) , TRUE) ;
	}
	
	return  check ;
}