Mercurial > pidgin.yaz
comparison console/libgnt/gntbutton.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 | c374f45f4c94 |
children | bfcdd361357e |
comparison
equal
deleted
inserted
replaced
14431:0ed8b285a44b | 14432:3ac156db9cb6 |
---|---|
23 type = GNT_COLOR_NORMAL; | 23 type = GNT_COLOR_NORMAL; |
24 | 24 |
25 wbkgdset(widget->window, '\0' | COLOR_PAIR(type)); | 25 wbkgdset(widget->window, '\0' | COLOR_PAIR(type)); |
26 mvwprintw(widget->window, 1, 2, button->priv->text); | 26 mvwprintw(widget->window, 1, 2, button->priv->text); |
27 | 27 |
28 DEBUG; | 28 GNTDEBUG; |
29 } | 29 } |
30 | 30 |
31 static void | 31 static void |
32 gnt_button_size_request(GntWidget *widget) | 32 gnt_button_size_request(GntWidget *widget) |
33 { | 33 { |
42 static void | 42 static void |
43 gnt_button_map(GntWidget *widget) | 43 gnt_button_map(GntWidget *widget) |
44 { | 44 { |
45 if (widget->priv.width == 0 || widget->priv.height == 0) | 45 if (widget->priv.width == 0 || widget->priv.height == 0) |
46 gnt_widget_size_request(widget); | 46 gnt_widget_size_request(widget); |
47 DEBUG; | 47 GNTDEBUG; |
48 } | 48 } |
49 | 49 |
50 static gboolean | 50 static gboolean |
51 gnt_button_key_pressed(GntWidget *widget, const char *key) | 51 gnt_button_key_pressed(GntWidget *widget, const char *key) |
52 { | 52 { |
76 parent_class->map = gnt_button_map; | 76 parent_class->map = gnt_button_map; |
77 parent_class->size_request = gnt_button_size_request; | 77 parent_class->size_request = gnt_button_size_request; |
78 parent_class->key_pressed = gnt_button_key_pressed; | 78 parent_class->key_pressed = gnt_button_key_pressed; |
79 parent_class->clicked = gnt_button_clicked; | 79 parent_class->clicked = gnt_button_clicked; |
80 | 80 |
81 DEBUG; | 81 GNTDEBUG; |
82 } | 82 } |
83 | 83 |
84 static void | 84 static void |
85 gnt_button_init(GTypeInstance *instance, gpointer class) | 85 gnt_button_init(GTypeInstance *instance, gpointer class) |
86 { | 86 { |
90 | 90 |
91 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_GROW_X); | 91 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_GROW_X); |
92 | 92 |
93 widget->priv.minw = 4; | 93 widget->priv.minw = 4; |
94 widget->priv.minh = 3; | 94 widget->priv.minh = 3; |
95 DEBUG; | 95 GNTDEBUG; |
96 } | 96 } |
97 | 97 |
98 /****************************************************************************** | 98 /****************************************************************************** |
99 * GntButton API | 99 * GntButton API |
100 *****************************************************************************/ | 100 *****************************************************************************/ |