diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-06-04 00:08:45 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-06-15 19:04:39 +0800 |
commit | 3f2f102289b7cc3195d77afa03cdb2158dd2bcfc (patch) | |
tree | a6e24e8ed3671b14f09e7d453889b2107abbea45 /libempathy-gtk/empathy-contact-widget.c | |
parent | 84db1f04162ce84f915f739d68e831d0d3baf449 (diff) | |
download | gsoc2013-empathy-3f2f102289b7cc3195d77afa03cdb2158dd2bcfc.tar gsoc2013-empathy-3f2f102289b7cc3195d77afa03cdb2158dd2bcfc.tar.gz gsoc2013-empathy-3f2f102289b7cc3195d77afa03cdb2158dd2bcfc.tar.bz2 gsoc2013-empathy-3f2f102289b7cc3195d77afa03cdb2158dd2bcfc.tar.lz gsoc2013-empathy-3f2f102289b7cc3195d77afa03cdb2158dd2bcfc.tar.xz gsoc2013-empathy-3f2f102289b7cc3195d77afa03cdb2158dd2bcfc.tar.zst gsoc2013-empathy-3f2f102289b7cc3195d77afa03cdb2158dd2bcfc.zip |
Add a GtkSpinner to notify the RequestContactInfo progress
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 5b03c597e..72fe321d7 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -123,6 +123,7 @@ typedef struct GtkWidget *vbox_details; GtkWidget *table_details; GtkWidget *hbox_details_requested; + GtkWidget *spinner_details; GList *details_to_set; GCancellable *details_cancellable; @@ -184,6 +185,11 @@ static void contact_widget_details_setup (EmpathyContactWidget *information) { gtk_widget_hide (information->vbox_details); + + information->spinner_details = gtk_spinner_new (); + gtk_box_pack_end (GTK_BOX (information->hbox_details_requested), + information->spinner_details, TRUE, TRUE, 0); + gtk_widget_show (information->spinner_details); } static void @@ -424,6 +430,7 @@ contact_widget_details_notify_cb (EmpathyContactWidget *information) } gtk_widget_hide (information->hbox_details_requested); + gtk_spinner_stop (GTK_SPINNER (information->spinner_details)); } static void @@ -493,6 +500,7 @@ contact_widget_details_feature_prepared_cb (GObject *object, gtk_widget_show (information->vbox_details); gtk_widget_show (information->hbox_details_requested); gtk_widget_hide (information->table_details); + gtk_spinner_start (GTK_SPINNER (information->spinner_details)); contact = empathy_contact_get_tp_contact (information->contact); g_assert (information->details_cancellable == NULL); |