aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-07-28 19:37:11 +0800
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-07-30 14:56:45 +0800
commit458a5908af2e98b9ac8abe7263720d0fbac6efcd (patch)
tree2efc29c1615e72100f76d74b9c48a5f4c42a7cb4 /libempathy-gtk
parentd869f072f8ae91f3f1f2dffb207d7f96fbb0ce1c (diff)
downloadgsoc2013-empathy-458a5908af2e98b9ac8abe7263720d0fbac6efcd.tar
gsoc2013-empathy-458a5908af2e98b9ac8abe7263720d0fbac6efcd.tar.gz
gsoc2013-empathy-458a5908af2e98b9ac8abe7263720d0fbac6efcd.tar.bz2
gsoc2013-empathy-458a5908af2e98b9ac8abe7263720d0fbac6efcd.tar.lz
gsoc2013-empathy-458a5908af2e98b9ac8abe7263720d0fbac6efcd.tar.xz
gsoc2013-empathy-458a5908af2e98b9ac8abe7263720d0fbac6efcd.tar.zst
gsoc2013-empathy-458a5908af2e98b9ac8abe7263720d0fbac6efcd.zip
EmpathyCalendarButton: Make it work without gtk_widget_show_all
https://bugzilla.gnome.org/show_bug.cgi?id=680449
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-calendar-button.c3
-rw-r--r--libempathy-gtk/empathy-contact-widget.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-calendar-button.c b/libempathy-gtk/empathy-calendar-button.c
index 9f4c4795e..ab13037a7 100644
--- a/libempathy-gtk/empathy-calendar-button.c
+++ b/libempathy-gtk/empathy-calendar-button.c
@@ -204,6 +204,7 @@ empathy_calendar_button_init (EmpathyCalendarButton *self)
gtk_button_set_alignment (GTK_BUTTON (self->priv->button_date), 0, 0.5);
gtk_box_pack_start (GTK_BOX (self), self->priv->button_date, TRUE, TRUE, 0);
+ gtk_widget_show (self->priv->button_date);
/* Clear */
self->priv->button_clear = gtk_button_new ();
@@ -211,12 +212,14 @@ empathy_calendar_button_init (EmpathyCalendarButton *self)
image = gtk_image_new_from_stock (GTK_STOCK_CLEAR,
GTK_ICON_SIZE_MENU);
gtk_button_set_image (GTK_BUTTON (self->priv->button_clear), image);
+ gtk_widget_show (image);
g_signal_connect (self->priv->button_clear, "clicked",
G_CALLBACK (empathy_calendar_button_clear_clicked), self);
gtk_box_pack_start (GTK_BOX (self), self->priv->button_clear,
FALSE, FALSE, 0);
+ gtk_widget_show (self->priv->button_clear);
}
static void
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 36d00a268..e8cce0373 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -468,7 +468,7 @@ contact_widget_details_update_edit (EmpathyContactWidget *self)
G_CALLBACK (contact_widget_details_changed_cb), self);
}
- gtk_widget_show_all (w);
+ gtk_widget_show (w);
add_row (GTK_GRID (self->priv->grid_contact), label, w);
g_object_set_data ((GObject *) w, DATA_FIELD, field);