Mandatory transferbar and no implicit statusbar
This commit is contained in:
parent
cea9c3f426
commit
3ff376b43b
2 changed files with 5 additions and 30 deletions
|
@ -972,11 +972,6 @@ midori_browser_prepare_download (MidoriBrowser* browser,
|
||||||
}
|
}
|
||||||
|
|
||||||
webkit_download_set_destination_uri (download, uri);
|
webkit_download_set_destination_uri (download, uri);
|
||||||
if (!browser->show_statusbar && gtk_widget_get_visible (browser->transferbar))
|
|
||||||
{
|
|
||||||
_midori_browser_set_statusbar_text (browser, NULL);
|
|
||||||
gtk_widget_show (browser->statusbar);
|
|
||||||
}
|
|
||||||
midori_transferbar_add_download_item (MIDORI_TRANSFERBAR (browser->transferbar), download);
|
midori_transferbar_add_download_item (MIDORI_TRANSFERBAR (browser->transferbar), download);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -2606,9 +2601,6 @@ midori_browser_toolbar_popup_context_menu_cb (GtkWidget* widget,
|
||||||
menuitem = sokoke_action_create_popup_menu_item (
|
menuitem = sokoke_action_create_popup_menu_item (
|
||||||
_action_by_name (browser, "Bookmarkbar"));
|
_action_by_name (browser, "Bookmarkbar"));
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
||||||
menuitem = sokoke_action_create_popup_menu_item (
|
|
||||||
_action_by_name (browser, "Transferbar"));
|
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
|
||||||
menuitem = sokoke_action_create_popup_menu_item (
|
menuitem = sokoke_action_create_popup_menu_item (
|
||||||
_action_by_name (browser, "Statusbar"));
|
_action_by_name (browser, "Statusbar"));
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
||||||
|
@ -3083,15 +3075,6 @@ _action_bookmarkbar_activate (GtkToggleAction* action,
|
||||||
sokoke_widget_set_visible (browser->bookmarkbar, active);
|
sokoke_widget_set_visible (browser->bookmarkbar, active);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
_action_transferbar_activate (GtkToggleAction* action,
|
|
||||||
MidoriBrowser* browser)
|
|
||||||
{
|
|
||||||
gboolean active = gtk_toggle_action_get_active (action);
|
|
||||||
g_object_set (browser->settings, "show-transferbar", active, NULL);
|
|
||||||
sokoke_widget_set_visible (browser->transferbar, active);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_action_statusbar_activate (GtkToggleAction* action,
|
_action_statusbar_activate (GtkToggleAction* action,
|
||||||
MidoriBrowser* browser)
|
MidoriBrowser* browser)
|
||||||
|
@ -5047,10 +5030,6 @@ static const GtkToggleActionEntry toggle_entries[] =
|
||||||
N_("_Bookmarkbar"), "",
|
N_("_Bookmarkbar"), "",
|
||||||
N_("Show bookmarkbar"), G_CALLBACK (_action_bookmarkbar_activate),
|
N_("Show bookmarkbar"), G_CALLBACK (_action_bookmarkbar_activate),
|
||||||
FALSE },
|
FALSE },
|
||||||
{ "Transferbar", NULL,
|
|
||||||
N_("_Transferbar"), "",
|
|
||||||
N_("Show transferbar"), G_CALLBACK (_action_transferbar_activate),
|
|
||||||
FALSE },
|
|
||||||
{ "Statusbar", NULL,
|
{ "Statusbar", NULL,
|
||||||
N_("_Statusbar"), "",
|
N_("_Statusbar"), "",
|
||||||
N_("Show statusbar"), G_CALLBACK (_action_statusbar_activate),
|
N_("Show statusbar"), G_CALLBACK (_action_statusbar_activate),
|
||||||
|
@ -5231,7 +5210,6 @@ static const gchar* ui_markup =
|
||||||
"<menuitem action='Menubar'/>"
|
"<menuitem action='Menubar'/>"
|
||||||
"<menuitem action='Navigationbar'/>"
|
"<menuitem action='Navigationbar'/>"
|
||||||
"<menuitem action='Bookmarkbar'/>"
|
"<menuitem action='Bookmarkbar'/>"
|
||||||
"<menuitem action='Transferbar'/>"
|
|
||||||
"<menuitem action='Statusbar'/>"
|
"<menuitem action='Statusbar'/>"
|
||||||
"</menu>"
|
"</menu>"
|
||||||
"<menuitem action='Panel'/>"
|
"<menuitem action='Panel'/>"
|
||||||
|
@ -5788,9 +5766,6 @@ midori_browser_init (MidoriBrowser* browser)
|
||||||
#if HAVE_HILDON
|
#if HAVE_HILDON
|
||||||
_action_set_visible (browser, "Menubar", FALSE);
|
_action_set_visible (browser, "Menubar", FALSE);
|
||||||
#endif
|
#endif
|
||||||
#if !WEBKIT_CHECK_VERSION (1, 1, 3)
|
|
||||||
_action_set_visible (browser, "Transferbar", FALSE);
|
|
||||||
#endif
|
|
||||||
#if !WEBKIT_CHECK_VERSION (1, 1, 2)
|
#if !WEBKIT_CHECK_VERSION (1, 1, 2)
|
||||||
_action_set_sensitive (browser, "Encoding", FALSE);
|
_action_set_sensitive (browser, "Encoding", FALSE);
|
||||||
#endif
|
#endif
|
||||||
|
@ -6110,7 +6085,7 @@ _midori_browser_update_settings (MidoriBrowser* browser)
|
||||||
gboolean right_align_sidepanel, open_panels_in_windows;
|
gboolean right_align_sidepanel, open_panels_in_windows;
|
||||||
gint last_panel_position, last_panel_page;
|
gint last_panel_position, last_panel_page;
|
||||||
gboolean show_menubar, show_bookmarkbar;
|
gboolean show_menubar, show_bookmarkbar;
|
||||||
gboolean show_panel, show_transferbar;
|
gboolean show_panel;
|
||||||
MidoriToolbarStyle toolbar_style;
|
MidoriToolbarStyle toolbar_style;
|
||||||
gchar* toolbar_items;
|
gchar* toolbar_items;
|
||||||
gint last_web_search;
|
gint last_web_search;
|
||||||
|
@ -6134,7 +6109,6 @@ _midori_browser_update_settings (MidoriBrowser* browser)
|
||||||
"show-navigationbar", &browser->show_navigationbar,
|
"show-navigationbar", &browser->show_navigationbar,
|
||||||
"show-bookmarkbar", &show_bookmarkbar,
|
"show-bookmarkbar", &show_bookmarkbar,
|
||||||
"show-panel", &show_panel,
|
"show-panel", &show_panel,
|
||||||
"show-transferbar", &show_transferbar,
|
|
||||||
"show-statusbar", &browser->show_statusbar,
|
"show-statusbar", &browser->show_statusbar,
|
||||||
"speed-dial-in-new-tabs", &browser->speed_dial_in_new_tabs,
|
"speed-dial-in-new-tabs", &browser->speed_dial_in_new_tabs,
|
||||||
"toolbar-style", &toolbar_style,
|
"toolbar-style", &toolbar_style,
|
||||||
|
@ -6220,9 +6194,6 @@ _midori_browser_update_settings (MidoriBrowser* browser)
|
||||||
_action_set_active (browser, "Bookmarkbar", show_bookmarkbar
|
_action_set_active (browser, "Bookmarkbar", show_bookmarkbar
|
||||||
&& browser->bookmarks != NULL);
|
&& browser->bookmarks != NULL);
|
||||||
_action_set_active (browser, "Panel", show_panel);
|
_action_set_active (browser, "Panel", show_panel);
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 3)
|
|
||||||
_action_set_active (browser, "Transferbar", show_transferbar);
|
|
||||||
#endif
|
|
||||||
_action_set_active (browser, "Statusbar", browser->show_statusbar);
|
_action_set_active (browser, "Statusbar", browser->show_statusbar);
|
||||||
|
|
||||||
g_free (toolbar_items);
|
g_free (toolbar_items);
|
||||||
|
|
|
@ -474,6 +474,8 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
|
||||||
* Whether to show the transferbar.
|
* Whether to show the transferbar.
|
||||||
*
|
*
|
||||||
* Since: 0.1.5
|
* Since: 0.1.5
|
||||||
|
*
|
||||||
|
* Deprecated: 0.3.1
|
||||||
*/
|
*/
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_SHOW_TRANSFERBAR,
|
PROP_SHOW_TRANSFERBAR,
|
||||||
|
@ -510,6 +512,8 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
|
||||||
* Whether to show search engines in the location completion.
|
* Whether to show search engines in the location completion.
|
||||||
*
|
*
|
||||||
* Since: 0.1.6
|
* Since: 0.1.6
|
||||||
|
*
|
||||||
|
* Deprecated: 0.3.1
|
||||||
*/
|
*/
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_SEARCH_ENGINES_IN_COMPLETION,
|
PROP_SEARCH_ENGINES_IN_COMPLETION,
|
||||||
|
|
Loading…
Reference in a new issue