aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-08-20 21:37:54 +0800
committerPhilip Withnall <philip.withnall@collabora.co.uk>2010-08-20 23:35:56 +0800
commit598d4c4821575442bb87329cb9d8b0b61db51dee (patch)
tree069f95d6972c4807601780533b49ddd1b4a6a556 /libempathy-gtk
parent320771c43432260d55c1a32d127fdaa0dabfa1fe (diff)
downloadgsoc2013-empathy-598d4c4821575442bb87329cb9d8b0b61db51dee.tar
gsoc2013-empathy-598d4c4821575442bb87329cb9d8b0b61db51dee.tar.gz
gsoc2013-empathy-598d4c4821575442bb87329cb9d8b0b61db51dee.tar.bz2
gsoc2013-empathy-598d4c4821575442bb87329cb9d8b0b61db51dee.tar.lz
gsoc2013-empathy-598d4c4821575442bb87329cb9d8b0b61db51dee.tar.xz
gsoc2013-empathy-598d4c4821575442bb87329cb9d8b0b61db51dee.tar.zst
gsoc2013-empathy-598d4c4821575442bb87329cb9d8b0b61db51dee.zip
Fix some visual breakage of EmpathyIndividualWidget in tooltips
It was expanding too much and leaking out of the tooltip balloon.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-widget.c17
-rw-r--r--libempathy-gtk/empathy-individual-widget.ui1
2 files changed, 12 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index de7fbf489..6d1ecd937 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -88,6 +88,7 @@ typedef struct {
/* Individual */
GtkWidget *hbox_presence;
+ GtkWidget *vbox_individual_widget;
GtkWidget *scrolled_window_individual;
GtkWidget *viewport_individual;
GtkWidget *vbox_individual;
@@ -1309,7 +1310,7 @@ alias_presence_avatar_favourite_set_up (EmpathyIndividualWidget *self,
gtk_container_add (GTK_CONTAINER (alignment), avatar);
gtk_widget_show (avatar);
- gtk_table_attach (table, alignment, 2, 3, 0, current_row + 1,
+ gtk_table_attach (table, alignment, 2, 3, 0, current_row,
GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 6, 6);
gtk_widget_show (alignment);
}
@@ -1559,7 +1560,7 @@ individual_table_set_up (EmpathyIndividualWidget *self)
/* Display the table */
gtk_box_pack_start (GTK_BOX (priv->vbox_individual), GTK_WIDGET (table),
- TRUE, TRUE, 0);
+ FALSE, TRUE, 0);
gtk_widget_show (GTK_WIDGET (table));
priv->individual_table = table;
@@ -1776,7 +1777,6 @@ empathy_individual_widget_init (EmpathyIndividualWidget *self)
{
EmpathyIndividualWidgetPriv *priv;
GtkBuilder *gui;
- GtkWidget *vbox_individual_widget;
gchar *filename;
priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
@@ -1791,7 +1791,7 @@ empathy_individual_widget_init (EmpathyIndividualWidget *self)
gui = empathy_builder_get_file (filename,
"scrolled_window_individual", &priv->scrolled_window_individual,
"viewport_individual", &priv->viewport_individual,
- "vbox_individual_widget", &vbox_individual_widget,
+ "vbox_individual_widget", &priv->vbox_individual_widget,
"vbox_individual", &priv->vbox_individual,
"vbox_location", &priv->vbox_location,
"subvbox_location", &priv->subvbox_location,
@@ -1808,8 +1808,9 @@ empathy_individual_widget_init (EmpathyIndividualWidget *self)
priv->table_location = NULL;
- gtk_box_pack_start (GTK_BOX (self), vbox_individual_widget, TRUE, TRUE, 0);
- gtk_widget_show (vbox_individual_widget);
+ gtk_box_pack_start (GTK_BOX (self), priv->vbox_individual_widget, TRUE, TRUE,
+ 0);
+ gtk_widget_show (priv->vbox_individual_widget);
priv->persona_tables = g_hash_table_new (NULL, NULL);
priv->individual_table = NULL;
@@ -1834,6 +1835,8 @@ constructed (GObject *object)
gtk_scrolled_window_set_shadow_type (scrolled_window, GTK_SHADOW_IN);
gtk_scrolled_window_set_policy (scrolled_window,
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+ gtk_box_set_child_packing (GTK_BOX (priv->vbox_individual_widget),
+ priv->scrolled_window_individual, TRUE, TRUE, 0, GTK_PACK_START);
gtk_container_set_border_width (GTK_CONTAINER (priv->viewport_individual),
6);
@@ -1844,6 +1847,8 @@ constructed (GObject *object)
gtk_scrolled_window_set_shadow_type (scrolled_window, GTK_SHADOW_NONE);
gtk_scrolled_window_set_policy (scrolled_window,
GTK_POLICY_NEVER, GTK_POLICY_NEVER);
+ gtk_box_set_child_packing (GTK_BOX (priv->vbox_individual_widget),
+ priv->scrolled_window_individual, FALSE, TRUE, 0, GTK_PACK_START);
gtk_container_set_border_width (GTK_CONTAINER (priv->viewport_individual),
0);
diff --git a/libempathy-gtk/empathy-individual-widget.ui b/libempathy-gtk/empathy-individual-widget.ui
index 75edd86ba..5fb382363 100644
--- a/libempathy-gtk/empathy-individual-widget.ui
+++ b/libempathy-gtk/empathy-individual-widget.ui
@@ -28,6 +28,7 @@
</object>
<packing>
<property name="position">0</property>
+ <property name="expand">False</property>
</packing>
</child>
<child>