diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-04 16:19:48 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-04 16:31:14 +0200 |
commit | 505ec4079c478b56ce279fad99fdfdd28f2310c6 (patch) | |
tree | 3c63d34b3cf69effbfded6d5bd8a18ad58b13874 /src | |
parent | a2b853f3f87579d32a835c22bfcdedeab965df8c (diff) |
roster-view: inherit from GtkListBox
https://bugzilla.gnome.org/show_bug.cgi?id=706988
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-roster-window.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c index 0c96e2fd..b79c5f89 100644 --- a/src/empathy-roster-window.c +++ b/src/empathy-roster-window.c @@ -2137,22 +2137,22 @@ view_drag_motion_cb (GtkWidget *widget, { /* Check if contact supports FT */ FolksIndividual *individual; - GtkWidget *child; + GtkListBoxRow *row; individual = empathy_roster_view_get_individual_at_y (self->priv->view, - y, &child); + y, &row); if (individual == NULL) goto no_hl; if (!individual_supports_ft (individual)) goto no_hl; - egg_list_box_drag_highlight_widget (EGG_LIST_BOX (widget), child); + gtk_list_box_drag_highlight_row (GTK_LIST_BOX (widget), row); return FALSE; } no_hl: - egg_list_box_drag_unhighlight_widget (EGG_LIST_BOX (widget)); + gtk_list_box_drag_unhighlight_row (GTK_LIST_BOX (widget)); return FALSE; } @@ -2366,8 +2366,7 @@ empathy_roster_window_init (EmpathyRosterWindow *self) gtk_widget_show (GTK_WIDGET (self->priv->view)); - egg_list_box_add_to_scrolled (EGG_LIST_BOX (self->priv->view), - GTK_SCROLLED_WINDOW (sw)); + gtk_container_add (GTK_CONTAINER (sw), GTK_WIDGET (self->priv->view)); g_signal_connect (self->priv->view, "individual-activated", G_CALLBACK (individual_activated_cb), self); |