Mercurial > pidgin.yaz
comparison console/libgnt/gntline.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 | 7573bd40a190 |
children | bfcdd361357e |
comparison
equal
deleted
inserted
replaced
14431:0ed8b285a44b | 14432:3ac156db9cb6 |
---|---|
38 static void | 38 static void |
39 gnt_line_map(GntWidget *widget) | 39 gnt_line_map(GntWidget *widget) |
40 { | 40 { |
41 if (widget->priv.width == 0 || widget->priv.height == 0) | 41 if (widget->priv.width == 0 || widget->priv.height == 0) |
42 gnt_widget_size_request(widget); | 42 gnt_widget_size_request(widget); |
43 DEBUG; | 43 GNTDEBUG; |
44 } | 44 } |
45 | 45 |
46 static void | 46 static void |
47 gnt_line_class_init(GntLineClass *klass) | 47 gnt_line_class_init(GntLineClass *klass) |
48 { | 48 { |
49 parent_class = GNT_WIDGET_CLASS(klass); | 49 parent_class = GNT_WIDGET_CLASS(klass); |
50 parent_class->draw = gnt_line_draw; | 50 parent_class->draw = gnt_line_draw; |
51 parent_class->map = gnt_line_map; | 51 parent_class->map = gnt_line_map; |
52 parent_class->size_request = gnt_line_size_request; | 52 parent_class->size_request = gnt_line_size_request; |
53 | 53 |
54 DEBUG; | 54 GNTDEBUG; |
55 } | 55 } |
56 | 56 |
57 static void | 57 static void |
58 gnt_line_init(GTypeInstance *instance, gpointer class) | 58 gnt_line_init(GTypeInstance *instance, gpointer class) |
59 { | 59 { |
60 GntWidget *widget = GNT_WIDGET(instance); | 60 GntWidget *widget = GNT_WIDGET(instance); |
61 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_NO_SHADOW | GNT_WIDGET_NO_BORDER); | 61 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_NO_SHADOW | GNT_WIDGET_NO_BORDER); |
62 widget->priv.minw = 1; | 62 widget->priv.minw = 1; |
63 widget->priv.minh = 1; | 63 widget->priv.minh = 1; |
64 DEBUG; | 64 GNTDEBUG; |
65 } | 65 } |
66 | 66 |
67 /****************************************************************************** | 67 /****************************************************************************** |
68 * GntLine API | 68 * GntLine API |
69 *****************************************************************************/ | 69 *****************************************************************************/ |