diff options
author | Juan Pablo Ugarte <jpu@src.gnome.org> | 2006-09-08 19:40:35 +0000 |
---|---|---|
committer | Juan Pablo Ugarte <jpu@src.gnome.org> | 2006-09-08 19:40:35 +0000 |
commit | 5c335818698591c03d86772af6ea5af6c34453bf (patch) | |
tree | d0bb968a5f0a5080bbdf848036c14bba7de8513b /src/glade-gnome.c | |
parent | 2ce1bd64c0992cb7e44fbb0361644a3a6da37b82 (diff) | |
download | glade-5c335818698591c03d86772af6ea5af6c34453bf.tar.gz |
added glade_gnome_date_edit_post_create() Fixed bug 351589 "GnomeDateEdit
* src/glade-gnome.c: added glade_gnome_date_edit_post_create()
Fixed bug 351589 "GnomeDateEdit widget displays time when it shouldn't"
* widgets/gnome.xml.in: added GnomeDateEdit's post-create-function
Diffstat (limited to 'src/glade-gnome.c')
-rw-r--r-- | src/glade-gnome.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/glade-gnome.c b/src/glade-gnome.c index 9b4fafde..5205b2c7 100644 --- a/src/glade-gnome.c +++ b/src/glade-gnome.c @@ -283,6 +283,20 @@ glade_gnome_app_bar_post_create (GObject *object, GladeCreateReason reason) gnome_appbar_set_status (GNOME_APPBAR (object), _("Status Message.")); } +/* GnomeDateEdit */ +void GLADEGNOME_API +glade_gnome_date_edit_post_create (GObject *object, GladeCreateReason reason) +{ + g_return_if_fail (GNOME_IS_DATE_EDIT (object)); + + /* DateEdit's "dateedit-flags" property hides/shows some widgets so we + * need to explicitly tell that they should not be affected by + * gtk_widget_show_all() (its, for example, called after a paste) + */ + gtk_container_foreach (GTK_CONTAINER (object), + gtk_widget_set_no_show_all, TRUE); +} + /* GnomeDruid */ static GladeWidget * glade_gnome_druid_add_page (GladeWidget *gdruid, gboolean edge) |