diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-06-24 18:09:28 +0800 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-06-24 18:50:17 +0800 |
commit | fb207a362a266da923f6f87c91c0dd649cfa9183 (patch) | |
tree | ce6cdca3c0af0f49f2cc6a4747d1aa3ce4ae36c2 /libempathy-gtk/empathy-status-preset-dialog.c | |
parent | 05fb4bd53ec98426d0880b0557031b2579ec96de (diff) | |
download | gsoc2013-empathy-fb207a362a266da923f6f87c91c0dd649cfa9183.tar gsoc2013-empathy-fb207a362a266da923f6f87c91c0dd649cfa9183.tar.gz gsoc2013-empathy-fb207a362a266da923f6f87c91c0dd649cfa9183.tar.bz2 gsoc2013-empathy-fb207a362a266da923f6f87c91c0dd649cfa9183.tar.lz gsoc2013-empathy-fb207a362a266da923f6f87c91c0dd649cfa9183.tar.xz gsoc2013-empathy-fb207a362a266da923f6f87c91c0dd649cfa9183.tar.zst gsoc2013-empathy-fb207a362a266da923f6f87c91c0dd649cfa9183.zip |
PresetDialog: GNOME 3-ify the remove button
Yum yum joined-toolbar!
Diffstat (limited to 'libempathy-gtk/empathy-status-preset-dialog.c')
-rw-r--r-- | libempathy-gtk/empathy-status-preset-dialog.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-status-preset-dialog.c b/libempathy-gtk/empathy-status-preset-dialog.c index 12305558a..30c5c6b9d 100644 --- a/libempathy-gtk/empathy-status-preset-dialog.c +++ b/libempathy-gtk/empathy-status-preset-dialog.c @@ -524,9 +524,11 @@ empathy_status_preset_dialog_init (EmpathyStatusPresetDialog *self) EMPATHY_TYPE_STATUS_PRESET_DIALOG, EmpathyStatusPresetDialogPriv); GtkBuilder *gui; - GtkWidget *toplevel_vbox, *remove_button, *entry; + GtkWidget *toplevel_vbox, *presets_sw, *remove_toolbar, *remove_button, + *entry; GtkTreeSelection *selection; char *filename; + GtkStyleContext *context; gtk_window_set_title (GTK_WINDOW (self), _("Edit Custom Messages")); @@ -538,13 +540,21 @@ empathy_status_preset_dialog_init (EmpathyStatusPresetDialog *self) "libempathy-gtk"); gui = empathy_builder_get_file (filename, "toplevel-vbox", &toplevel_vbox, + "presets-sw", &presets_sw, "presets-treeview", &priv->presets_treeview, + "remove-toolbar", &remove_toolbar, "remove-button", &remove_button, "add-combobox", &priv->add_combobox, "add-button", &priv->add_button, NULL); g_free (filename); + /* join the remove toolbar to the treeview */ + context = gtk_widget_get_style_context (presets_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); + selection = gtk_tree_view_get_selection ( GTK_TREE_VIEW (priv->presets_treeview)); g_signal_connect (selection, |