diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-23 20:39:08 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-23 20:42:23 +0800 |
commit | a39128b04df75da0965452c9c74b902c633e25ee (patch) | |
tree | 223acda73d2684f6a592c28a0069b066cd8eb842 /libempathy-gtk | |
parent | 9609495ef4dedb1c80a39faeb780fe1f660cc411 (diff) | |
download | gsoc2013-empathy-a39128b04df75da0965452c9c74b902c633e25ee.tar gsoc2013-empathy-a39128b04df75da0965452c9c74b902c633e25ee.tar.gz gsoc2013-empathy-a39128b04df75da0965452c9c74b902c633e25ee.tar.bz2 gsoc2013-empathy-a39128b04df75da0965452c9c74b902c633e25ee.tar.lz gsoc2013-empathy-a39128b04df75da0965452c9c74b902c633e25ee.tar.xz gsoc2013-empathy-a39128b04df75da0965452c9c74b902c633e25ee.tar.zst gsoc2013-empathy-a39128b04df75da0965452c9c74b902c633e25ee.zip |
individual-widget: adapt number of rows to the features needed
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 e3c5d723c..a42c5a999 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); |