[devhelp] window: join back and forward buttons together
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] window: join back and forward buttons together
- Date: Fri, 1 Feb 2013 12:25:30 +0000 (UTC)
commit d790389359966226268c338164c86c7a3144a9be
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Fri Feb 1 12:58:20 2013 +0100
window: join back and forward buttons together
src/dh-window.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index 849fb24..1d2ebb8 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -1040,18 +1040,26 @@ window_populate (DhWindow *window)
GtkWidget *toolbar;
gchar *selected_tab;
guint i;
+ GtkWidget *back;
+ GtkWidget *forward;
+ GtkWidget *box;
priv = window->priv;
toolbar = gd_main_toolbar_new ();
- gd_main_toolbar_add_button (GD_MAIN_TOOLBAR (toolbar),
+ back = gd_main_toolbar_add_button (GD_MAIN_TOOLBAR (toolbar),
"go-previous-symbolic",
_("Back"),
TRUE);
- gd_main_toolbar_add_button (GD_MAIN_TOOLBAR (toolbar),
+ forward = gd_main_toolbar_add_button (GD_MAIN_TOOLBAR (toolbar),
"go-next-symbolic",
_("Forward"),
TRUE);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_style_context_add_class (gtk_widget_get_style_context (box), "linked");
+ gtk_widget_reparent (back, box);
+ gtk_widget_reparent (forward, box);
+ gd_main_toolbar_add_widget (GD_MAIN_TOOLBAR (toolbar), box, TRUE);
gd_main_toolbar_add_menu (GD_MAIN_TOOLBAR (toolbar),
"emblem-system-symbolic",
"",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]