X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-main-window.c;h=25e7e1d0d27795a82369f03f78a45abe646039be;hp=1c284fbf9e1a72e875246714686aca0e0ffe20e7;hb=e45958deaf9701399c552ea0d84c2447efacd4ca;hpb=99dbdf429ab5391a0fc4779f23c8bd93d7cc9d86 diff --git a/src/hildon2/modest-main-window.c b/src/hildon2/modest-main-window.c index 1c284fb..25e7e1d 100644 --- a/src/hildon2/modest-main-window.c +++ b/src/hildon2/modest-main-window.c @@ -1181,8 +1181,6 @@ modest_main_window_new (void) GtkActionGroup *action_group = NULL; GError *error = NULL; HildonProgram *app; - ModestConf *conf = NULL; - GtkAction *action = NULL; GdkPixbuf *window_icon; ShowHelper *helper; @@ -1259,11 +1257,6 @@ modest_main_window_new (void) /* Menubar. Update the state of some toggles */ parent_priv->menubar = modest_maemo_utils_get_manager_menubar_as_menu (parent_priv->ui_manager, "/MenuBar"); - conf = modest_runtime_get_conf (); - action = gtk_ui_manager_get_action (parent_priv->ui_manager, - "/MenuBar/ViewMenu/ViewShowToolbarMainMenu/ViewShowToolbarNormalScreenMenu"); - gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), - modest_conf_get_bool (conf, MODEST_CONF_MAIN_WINDOW_SHOW_TOOLBAR, NULL)); hildon_window_set_menu (HILDON_WINDOW (self), GTK_MENU (parent_priv->menubar)); gtk_widget_show (parent_priv->menubar);