]> www.fi.muni.cz Git - evince.git/commitdiff
Make the toolbar not removable
authorMarco Pesenti Gritti <mpg@redhat.com>
Tue, 10 May 2005 12:26:57 +0000 (12:26 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Tue, 10 May 2005 12:26:57 +0000 (12:26 +0000)
2005-05-10  Marco Pesenti Gritti  <mpg@redhat.com>

        * shell/ev-window.c: (ev_window_init):

        Make the toolbar not removable

ChangeLog
shell/ev-window.c

index 76b0a549ef6040180ac7fc087ea131d5b58c1134..5e72f8637b8037954a88f9db69381740b212dae5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-10  Marco Pesenti Gritti  <mpg@redhat.com>
+
+       * shell/ev-window.c: (ev_window_init):
+
+       Make the toolbar not removable
+
 2005-05-10  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * data/evince-ui.xml:
index 1aba5eb1c5c93dbf5ccd6a5b49d96401d825c917..6a6e00d0f14deda59ecac856bc39cfefe3062c32 100644 (file)
@@ -2723,6 +2723,9 @@ ev_window_init (EvWindow *ev_window)
                egg_toolbars_model_load (ev_window->priv->toolbar_model,
                                         ev_window->priv->toolbar_file);
        }
+
+       egg_toolbars_model_set_flags (ev_window->priv->toolbar_model, 0,
+                                     EGG_TB_MODEL_NOT_REMOVABLE); 
        
        /* This sucks, but there is no way to have a draw=no, expand=true separator
         * in a GtkUIManager-built toolbar. So, just add another toolbar.