[empathy] individual-widget: adapt number of rows to the features needed



commit a39128b04df75da0965452c9c74b902c633e25ee
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Aug 23 14:39:08 2010 +0200

    individual-widget: adapt number of rows to the features needed

 libempathy-gtk/empathy-individual-widget.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index e3c5d72..a42c5a9 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -1525,11 +1525,15 @@ individual_table_set_up (EmpathyIndividualWidget *self)
   EmpathyIndividualWidgetPriv *priv = GET_PRIV (self);
   GtkTable *table;
   guint current_row = 0;
+  guint nb_rows = 2;
 
   if (priv->flags & EMPATHY_INDIVIDUAL_WIDGET_EDIT_FAVOURITE)
-    table = GTK_TABLE (gtk_table_new (4, 3, FALSE));
-  else
-    table = GTK_TABLE (gtk_table_new (3, 3, FALSE));
+    nb_rows++;
+
+  if (priv->flags & EMPATHY_INDIVIDUAL_WIDGET_FOR_TOOLTIP)
+    nb_rows++;
+
+  table = GTK_TABLE (gtk_table_new (nb_rows, 3, FALSE));
   gtk_table_set_row_spacings (table, 6);
   gtk_table_set_col_spacings (table, 6);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]