comparison console/libgnt/gntcheckbox.c @ 14432:3ac156db9cb6

[gaim-migrate @ 17146] This will get rid of the compile warnings about redefining DEBUG. I thought about #undef-ing it first. But rekkanoryo suggested renaming to GNTDEBUG, which makes a lot more sense. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 03 Sep 2006 21:42:52 +0000
parents 0387a167f342
children ae0136b0a3ae
comparison
equal deleted inserted replaced
14431:0ed8b285a44b 14432:3ac156db9cb6
28 g_free(text); 28 g_free(text);
29 29
30 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); 30 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL));
31 mvwprintw(widget->window, 0, 4, GNT_BUTTON(cb)->priv->text); 31 mvwprintw(widget->window, 0, 4, GNT_BUTTON(cb)->priv->text);
32 32
33 DEBUG; 33 GNTDEBUG;
34 } 34 }
35 35
36 static void 36 static void
37 gnt_check_box_size_request(GntWidget *widget) 37 gnt_check_box_size_request(GntWidget *widget)
38 { 38 {
41 static void 41 static void
42 gnt_check_box_map(GntWidget *widget) 42 gnt_check_box_map(GntWidget *widget)
43 { 43 {
44 if (widget->priv.width == 0 || widget->priv.height == 0) 44 if (widget->priv.width == 0 || widget->priv.height == 0)
45 gnt_widget_size_request(widget); 45 gnt_widget_size_request(widget);
46 DEBUG; 46 GNTDEBUG;
47 } 47 }
48 48
49 static void 49 static void
50 toggle_selection(GntWidget *widget) 50 toggle_selection(GntWidget *widget)
51 { 51 {
100 G_SIGNAL_RUN_LAST, 100 G_SIGNAL_RUN_LAST,
101 G_STRUCT_OFFSET(GntCheckBoxClass, toggled), 101 G_STRUCT_OFFSET(GntCheckBoxClass, toggled),
102 NULL, NULL, 102 NULL, NULL,
103 g_cclosure_marshal_VOID__VOID, 103 g_cclosure_marshal_VOID__VOID,
104 G_TYPE_NONE, 0); 104 G_TYPE_NONE, 0);
105 DEBUG; 105 GNTDEBUG;
106 } 106 }
107 107
108 static void 108 static void
109 gnt_check_box_init(GTypeInstance *instance, gpointer class) 109 gnt_check_box_init(GTypeInstance *instance, gpointer class)
110 { 110 {
111 GNT_WIDGET_SET_FLAGS(GNT_WIDGET(instance), GNT_WIDGET_NO_BORDER | GNT_WIDGET_NO_SHADOW); 111 GNT_WIDGET_SET_FLAGS(GNT_WIDGET(instance), GNT_WIDGET_NO_BORDER | GNT_WIDGET_NO_SHADOW);
112 DEBUG; 112 GNTDEBUG;
113 } 113 }
114 114
115 /****************************************************************************** 115 /******************************************************************************
116 * GntCheckBox API 116 * GntCheckBox API
117 *****************************************************************************/ 117 *****************************************************************************/