Mercurial > pidgin
comparison console/libgnt/gnttextview.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 | 28baa42b5ac2 |
children | 9baeeaa365d1 |
comparison
equal
deleted
inserted
replaced
14431:0ed8b285a44b | 14432:3ac156db9cb6 |
---|---|
90 (lines ? ACS_UARROW : ' ') | COLOR_PAIR(GNT_COLOR_HIGHLIGHT_D)); | 90 (lines ? ACS_UARROW : ' ') | COLOR_PAIR(GNT_COLOR_HIGHLIGHT_D)); |
91 mvwaddch(widget->window, widget->priv.height - 1, scrcol, | 91 mvwaddch(widget->window, widget->priv.height - 1, scrcol, |
92 ((view->list && view->list->prev) ? ACS_DARROW : ' ') | | 92 ((view->list && view->list->prev) ? ACS_DARROW : ' ') | |
93 COLOR_PAIR(GNT_COLOR_HIGHLIGHT_D)); | 93 COLOR_PAIR(GNT_COLOR_HIGHLIGHT_D)); |
94 | 94 |
95 DEBUG; | 95 GNTDEBUG; |
96 } | 96 } |
97 | 97 |
98 static void | 98 static void |
99 gnt_text_view_size_request(GntWidget *widget) | 99 gnt_text_view_size_request(GntWidget *widget) |
100 { | 100 { |
107 static void | 107 static void |
108 gnt_text_view_map(GntWidget *widget) | 108 gnt_text_view_map(GntWidget *widget) |
109 { | 109 { |
110 if (widget->priv.width == 0 || widget->priv.height == 0) | 110 if (widget->priv.width == 0 || widget->priv.height == 0) |
111 gnt_widget_size_request(widget); | 111 gnt_widget_size_request(widget); |
112 DEBUG; | 112 GNTDEBUG; |
113 } | 113 } |
114 | 114 |
115 static gboolean | 115 static gboolean |
116 gnt_text_view_key_pressed(GntWidget *widget, const char *text) | 116 gnt_text_view_key_pressed(GntWidget *widget, const char *text) |
117 { | 117 { |
233 parent_class->size_request = gnt_text_view_size_request; | 233 parent_class->size_request = gnt_text_view_size_request; |
234 parent_class->key_pressed = gnt_text_view_key_pressed; | 234 parent_class->key_pressed = gnt_text_view_key_pressed; |
235 parent_class->clicked = gnt_text_view_clicked; | 235 parent_class->clicked = gnt_text_view_clicked; |
236 parent_class->size_changed = gnt_text_view_size_changed; | 236 parent_class->size_changed = gnt_text_view_size_changed; |
237 | 237 |
238 DEBUG; | 238 GNTDEBUG; |
239 } | 239 } |
240 | 240 |
241 static void | 241 static void |
242 gnt_text_view_init(GTypeInstance *instance, gpointer class) | 242 gnt_text_view_init(GTypeInstance *instance, gpointer class) |
243 { | 243 { |
245 | 245 |
246 GNT_WIDGET_SET_FLAGS(GNT_WIDGET(instance), GNT_WIDGET_GROW_Y | GNT_WIDGET_GROW_X); | 246 GNT_WIDGET_SET_FLAGS(GNT_WIDGET(instance), GNT_WIDGET_GROW_Y | GNT_WIDGET_GROW_X); |
247 | 247 |
248 widget->priv.minw = 5; | 248 widget->priv.minw = 5; |
249 widget->priv.minh = 2; | 249 widget->priv.minh = 2; |
250 DEBUG; | 250 GNTDEBUG; |
251 } | 251 } |
252 | 252 |
253 /****************************************************************************** | 253 /****************************************************************************** |
254 * GntTextView API | 254 * GntTextView API |
255 *****************************************************************************/ | 255 *****************************************************************************/ |