[bijiben] selections: Use Action bar



commit 9b3913c2ae50217986ad5fcfe56df34d0b013c48
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Mon Feb 10 01:16:06 2014 +0100

    selections: Use Action bar
    
    721699

 configure.ac                |    2 +-
 src/bjb-selection-toolbar.c |   18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 27efd44..7819155 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,7 @@ AM_PROG_LIBTOOL
 
 
 GLIB_REQUIRED_VERSION=2.28
-GTK_REQUIRED_VERSION=3.9.3
+GTK_REQUIRED_VERSION=3.11.4
 
 
 PKG_CHECK_MODULES(BIJIBEN,
diff --git a/src/bjb-selection-toolbar.c b/src/bjb-selection-toolbar.c
index 7f13059..a387a82 100644
--- a/src/bjb-selection-toolbar.c
+++ b/src/bjb-selection-toolbar.c
@@ -46,7 +46,7 @@ static GParamSpec *properties[NUM_PROPERTIES] = { NULL, };
 
 struct _BjbSelectionToolbarPrivate
 {
-  GtkHeaderBar       *bar;
+  GtkActionBar       *bar;
   BjbMainView        *view ;
   GtkWidget          *widget ;
   GdMainView         *selection ;
@@ -378,23 +378,23 @@ bjb_selection_toolbar_init (BjbSelectionToolbar *self)
   gtk_revealer_set_transition_type (
       GTK_REVEALER (self), GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP);
 
-  priv->bar = GTK_HEADER_BAR (gtk_header_bar_new ());
+  priv->bar = GTK_ACTION_BAR (gtk_action_bar_new ());
   gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (priv->bar));
 
 
   /* Notes tags */
   priv->toolbar_tag = gtk_button_new_with_label (_("Notebooks"));
-  gtk_header_bar_pack_start (priv->bar, priv->toolbar_tag);
+  gtk_action_bar_pack_start (priv->bar, priv->toolbar_tag);
 
   /* Restore */
   priv->toolbar_restore = gtk_button_new_with_label (_("Restore"));
-  gtk_header_bar_pack_start (priv->bar, priv->toolbar_restore);
+  gtk_action_bar_pack_start (priv->bar, priv->toolbar_restore);
 
   /* Notes color */
   priv->toolbar_color = bjb_color_button_new ();
   gtk_widget_set_tooltip_text (GTK_WIDGET (priv->toolbar_color),
                                _("Note color"));
-  gtk_header_bar_pack_start (priv->bar, priv->toolbar_color);
+  gtk_action_bar_pack_start (priv->bar, priv->toolbar_color);
 
 
   /* Share */
@@ -404,25 +404,25 @@ bjb_selection_toolbar_init (BjbSelectionToolbar *self)
   gtk_style_context_add_class (gtk_widget_get_style_context (priv->toolbar_share),
                                "image-button");
   gtk_widget_set_tooltip_text (priv->toolbar_share, _("Share note"));
-  gtk_header_bar_pack_start (priv->bar, priv->toolbar_share);
+  gtk_action_bar_pack_start (priv->bar, priv->toolbar_share);
 
   /* Detach */
   priv->toolbar_detach = gtk_button_new_with_label (_("Open in another window"));
-  gtk_header_bar_pack_start (priv->bar, priv->toolbar_detach);
+  gtk_action_bar_pack_start (priv->bar, priv->toolbar_detach);
 
 
   /* Trash notes */
   priv->toolbar_trash = gtk_button_new_with_label (_("Move to Trash"));
   context = gtk_widget_get_style_context (priv->toolbar_trash);
   gtk_style_context_add_class (context, "destructive-action");
-  gtk_header_bar_pack_end (priv->bar, priv->toolbar_trash);
+  gtk_action_bar_pack_end (priv->bar, priv->toolbar_trash);
 
 
   /* Permanently delete */
   priv->toolbar_delete = gtk_button_new_with_label (_("Permanently Delete"));
   context = gtk_widget_get_style_context (priv->toolbar_delete);
   gtk_style_context_add_class (context, "destructive-action");
-  gtk_header_bar_pack_end (priv->bar, priv->toolbar_delete);
+  gtk_action_bar_pack_end (priv->bar, priv->toolbar_delete);
 
 
   /* Align buttons */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]