Mercurial > pidgin
comparison console/libgnt/gntentry.c @ 13888:9d66969a2e32
[gaim-migrate @ 16369]
Get rid of a whole lot of compile warnings.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 28 Jun 2006 19:12:38 +0000 |
parents | 5c750626eaa5 |
children | a621329e8c85 |
comparison
equal
deleted
inserted
replaced
13887:7d3256b253ec | 13888:9d66969a2e32 |
---|---|
1 #include <ctype.h> | |
1 #include <string.h> | 2 #include <string.h> |
3 | |
2 #include "gntentry.h" | 4 #include "gntentry.h" |
3 | 5 |
4 enum | 6 enum |
5 { | 7 { |
6 SIGS = 1, | 8 SIGS = 1, |
26 } | 28 } |
27 | 29 |
28 static void | 30 static void |
29 gnt_entry_size_request(GntWidget *widget) | 31 gnt_entry_size_request(GntWidget *widget) |
30 { | 32 { |
31 GntEntry *entry = GNT_ENTRY(widget); | |
32 | |
33 if (!GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_MAPPED)) | 33 if (!GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_MAPPED)) |
34 { | 34 { |
35 widget->priv.height = 1; | 35 widget->priv.height = 1; |
36 widget->priv.width = 20; | 36 widget->priv.width = 20; |
37 } | 37 } |
148 } | 148 } |
149 | 149 |
150 static void | 150 static void |
151 gnt_entry_class_init(GntEntryClass *klass) | 151 gnt_entry_class_init(GntEntryClass *klass) |
152 { | 152 { |
153 GObjectClass *obj_class = G_OBJECT_CLASS(klass); | |
154 | |
155 parent_class = GNT_WIDGET_CLASS(klass); | 153 parent_class = GNT_WIDGET_CLASS(klass); |
156 parent_class->destroy = gnt_entry_destroy; | 154 parent_class->destroy = gnt_entry_destroy; |
157 parent_class->draw = gnt_entry_draw; | 155 parent_class->draw = gnt_entry_draw; |
158 parent_class->map = gnt_entry_map; | 156 parent_class->map = gnt_entry_map; |
159 parent_class->size_request = gnt_entry_size_request; | 157 parent_class->size_request = gnt_entry_size_request; |