Mercurial > pidgin
comparison console/libgnt/gntlabel.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 | cfd5bcc06a7e |
children | bfcdd361357e |
comparison
equal
deleted
inserted
replaced
14431:0ed8b285a44b | 14432:3ac156db9cb6 |
---|---|
25 chtype flag = gnt_text_format_flag_to_chtype(label->flags); | 25 chtype flag = gnt_text_format_flag_to_chtype(label->flags); |
26 | 26 |
27 wbkgdset(widget->window, '\0' | flag); | 27 wbkgdset(widget->window, '\0' | flag); |
28 mvwprintw(widget->window, 0, 0, label->text); | 28 mvwprintw(widget->window, 0, 0, label->text); |
29 | 29 |
30 DEBUG; | 30 GNTDEBUG; |
31 } | 31 } |
32 | 32 |
33 static void | 33 static void |
34 gnt_label_size_request(GntWidget *widget) | 34 gnt_label_size_request(GntWidget *widget) |
35 { | 35 { |
46 parent_class->destroy = gnt_label_destroy; | 46 parent_class->destroy = gnt_label_destroy; |
47 parent_class->draw = gnt_label_draw; | 47 parent_class->draw = gnt_label_draw; |
48 parent_class->map = NULL; | 48 parent_class->map = NULL; |
49 parent_class->size_request = gnt_label_size_request; | 49 parent_class->size_request = gnt_label_size_request; |
50 | 50 |
51 DEBUG; | 51 GNTDEBUG; |
52 } | 52 } |
53 | 53 |
54 static void | 54 static void |
55 gnt_label_init(GTypeInstance *instance, gpointer class) | 55 gnt_label_init(GTypeInstance *instance, gpointer class) |
56 { | 56 { |
57 GntWidget *widget = GNT_WIDGET(instance); | 57 GntWidget *widget = GNT_WIDGET(instance); |
58 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_GROW_X); | 58 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_GROW_X); |
59 widget->priv.minw = 3; | 59 widget->priv.minw = 3; |
60 widget->priv.minh = 1; | 60 widget->priv.minh = 1; |
61 DEBUG; | 61 GNTDEBUG; |
62 } | 62 } |
63 | 63 |
64 /****************************************************************************** | 64 /****************************************************************************** |
65 * GntLabel API | 65 * GntLabel API |
66 *****************************************************************************/ | 66 *****************************************************************************/ |