diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-08-09 00:04:47 +0800 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-08-09 00:06:12 +0800 |
commit | 75e1fbc9e330e16c48a835e4f73d468b00c7b5b5 (patch) | |
tree | aa08c917b8141ef32ab7f324de89d702d829b37c /libempathy-gtk/empathy-contact-blocking-dialog.c | |
parent | 5846186ace8c9e513aef0eb5ec9f13a61cdb4424 (diff) | |
download | gsoc2013-empathy-75e1fbc9e330e16c48a835e4f73d468b00c7b5b5.tar gsoc2013-empathy-75e1fbc9e330e16c48a835e4f73d468b00c7b5b5.tar.gz gsoc2013-empathy-75e1fbc9e330e16c48a835e4f73d468b00c7b5b5.tar.bz2 gsoc2013-empathy-75e1fbc9e330e16c48a835e4f73d468b00c7b5b5.tar.lz gsoc2013-empathy-75e1fbc9e330e16c48a835e4f73d468b00c7b5b5.tar.xz gsoc2013-empathy-75e1fbc9e330e16c48a835e4f73d468b00c7b5b5.tar.zst gsoc2013-empathy-75e1fbc9e330e16c48a835e4f73d468b00c7b5b5.zip |
Blocking dialog: Gnome 3-ify Remove button
Diffstat (limited to 'libempathy-gtk/empathy-contact-blocking-dialog.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-blocking-dialog.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-blocking-dialog.c b/libempathy-gtk/empathy-contact-blocking-dialog.c index 1cb2b279c..404dab172 100644 --- a/libempathy-gtk/empathy-contact-blocking-dialog.c +++ b/libempathy-gtk/empathy-contact-blocking-dialog.c @@ -758,9 +758,11 @@ empathy_contact_blocking_dialog_init (EmpathyContactBlockingDialog *self) GtkBuilder *gui; char *filename; GtkWidget *contents; - GtkWidget *account_hbox, *blocked_contacts_view; + GtkWidget *account_hbox, *blocked_contacts_view, *blocked_contacts_sw, + *remove_toolbar; GtkEntryCompletion *completion; TpAccountManager *am; + GtkStyleContext *context; self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, EMPATHY_TYPE_CONTACT_BLOCKING_DIALOG, @@ -782,8 +784,10 @@ empathy_contact_blocking_dialog_init (EmpathyContactBlockingDialog *self) "add-button", &self->priv->add_button, "add-contact-entry", &self->priv->add_contact_entry, "blocked-contacts", &self->priv->blocked_contacts, + "blocked-contacts-sw", &blocked_contacts_sw, "blocked-contacts-view", &blocked_contacts_view, "remove-button", &self->priv->remove_button, + "remove-toolbar", &remove_toolbar, NULL); empathy_builder_connect (gui, self, @@ -792,6 +796,12 @@ empathy_contact_blocking_dialog_init (EmpathyContactBlockingDialog *self) "remove-button", "clicked", contact_blocking_dialog_remove_contacts, NULL); + /* join the remove toolbar to the treeview */ + context = gtk_widget_get_style_context (blocked_contacts_sw); + gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM); + context = gtk_widget_get_style_context (remove_toolbar); + gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP); + /* add the contents to the dialog */ gtk_container_add ( GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (self))), |