aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-23 20:22:32 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-23 20:42:23 +0800
commit9609495ef4dedb1c80a39faeb780fe1f660cc411 (patch)
tree8c2a561dfa0d71f89586a4616821e5a97f37eb93
parent3ecae374709ef76a984656f90f360e5f42831fc0 (diff)
downloadgsoc2013-empathy-9609495ef4dedb1c80a39faeb780fe1f660cc411.tar
gsoc2013-empathy-9609495ef4dedb1c80a39faeb780fe1f660cc411.tar.gz
gsoc2013-empathy-9609495ef4dedb1c80a39faeb780fe1f660cc411.tar.bz2
gsoc2013-empathy-9609495ef4dedb1c80a39faeb780fe1f660cc411.tar.lz
gsoc2013-empathy-9609495ef4dedb1c80a39faeb780fe1f660cc411.tar.xz
gsoc2013-empathy-9609495ef4dedb1c80a39faeb780fe1f660cc411.tar.zst
gsoc2013-empathy-9609495ef4dedb1c80a39faeb780fe1f660cc411.zip
linker: add a label explaining how to use the dialog
-rw-r--r--libempathy-gtk/empathy-individual-linker.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-individual-linker.c b/libempathy-gtk/empathy-individual-linker.c
index e98a35dc5..2d512ea4c 100644
--- a/libempathy-gtk/empathy-individual-linker.c
+++ b/libempathy-gtk/empathy-individual-linker.c
@@ -235,6 +235,7 @@ set_up (EmpathyIndividualLinker *self)
EmpathyIndividualLinkerPriv *priv;
EmpathyIndividualManager *individual_manager;
GtkCellRenderer *cell_renderer;
+ GtkWidget *top_vbox;
GtkPaned *paned;
GtkWidget *label, *scrolled_window, *search_bar;
GtkBox *vbox;
@@ -243,6 +244,8 @@ set_up (EmpathyIndividualLinker *self)
priv = GET_PRIV (self);
+ top_vbox = gtk_vbox_new (FALSE, 6);
+
/* Layout panes */
paned = GTK_PANED (gtk_hpaned_new ());
@@ -334,9 +337,22 @@ set_up (EmpathyIndividualLinker *self)
gtk_paned_pack2 (paned, GTK_WIDGET (vbox), TRUE, FALSE);
gtk_widget_show (GTK_WIDGET (vbox));
- /* Add the panes to the bin */
- gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (paned));
gtk_widget_show (GTK_WIDGET (paned));
+
+ /* Footer label */
+ label = gtk_label_new (NULL);
+ tmp = g_strdup_printf ("<i>%s</i>",
+ _("Contacts selected in the list on the left will be linked together."));
+ gtk_label_set_markup (GTK_LABEL (label), tmp);
+ g_free (tmp);
+ gtk_widget_show (label);
+
+ gtk_box_pack_start (GTK_BOX (top_vbox), GTK_WIDGET (paned), TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (top_vbox), label, FALSE, TRUE, 0);
+
+ /* Add the main vbox to the bin */
+ gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (top_vbox));
+ gtk_widget_show (GTK_WIDGET (top_vbox));
}
static void