GtkWidget* statusbar;
GtkWidget* statusbar_contents;
GtkWidget* transferbar;
- GtkWidget* progressbar;
gchar* statusbar_text;
gint last_window_width, last_window_height;
gboolean show_navigationbar;
gboolean show_statusbar;
gboolean speed_dial_in_new_tabs;
- gboolean progress_in_location;
guint maximum_history_age;
gchar* location_entry_search;
gchar* news_aggregator;
"stock-id", GTK_STOCK_REFRESH,
"tooltip", _("Reload the current page"),
"sensitive", can_reload, NULL);
- gtk_widget_hide (browser->progressbar);
- if (!browser->show_navigationbar && !browser->show_statusbar)
+ if (!browser->show_navigationbar)
gtk_widget_hide (browser->navigationbar);
}
else
g_object_set (action,
"stock-id", GTK_STOCK_STOP,
"tooltip", _("Stop loading the current page"), NULL);
- if (!browser->progress_in_location || !gtk_widget_get_visible (browser->navigationbar))
- gtk_widget_show (browser->progressbar);
- if (!gtk_widget_get_visible (browser->statusbar) &&
- !gtk_widget_get_visible (browser->navigationbar) &&
- browser->progress_in_location)
+ if (!gtk_widget_get_visible (browser->navigationbar))
gtk_widget_show (browser->navigationbar);
}
{
MidoriLocationAction* action;
gdouble progress;
- gchar* message;
action = MIDORI_LOCATION_ACTION (_action_by_name (browser, "Location"));
progress = midori_view_get_progress (view);
/* When we are finished, we don't want to *see* progress anymore */
if (midori_view_get_load_status (view) == MIDORI_LOAD_FINISHED)
progress = 0.0;
- if (progress > 0.0)
- {
- gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (browser->progressbar),
- progress);
- message = g_strdup_printf (_("%d%% loaded"), (gint)(progress * 100));
- gtk_progress_bar_set_text (GTK_PROGRESS_BAR (browser->progressbar),
- message);
- g_free (message);
- if (!browser->progress_in_location)
- progress = 0.0;
- }
- else
- {
- gtk_progress_bar_pulse (GTK_PROGRESS_BAR (browser->progressbar));
- gtk_progress_bar_set_text (GTK_PROGRESS_BAR (browser->progressbar),
- NULL);
- }
midori_location_action_set_progress (action, progress);
}
#endif
gtk_box_pack_start (GTK_BOX (vbox), browser->statusbar, FALSE, FALSE, 0);
- browser->progressbar = gtk_progress_bar_new ();
- gtk_box_pack_start (GTK_BOX (browser->statusbar_contents),
- browser->progressbar, FALSE, FALSE, 3);
-
browser->transferbar = g_object_new (MIDORI_TYPE_TRANSFERBAR, NULL);
gtk_box_pack_start (GTK_BOX (browser->statusbar_contents), browser->transferbar, FALSE, FALSE, 3);
gtk_toolbar_set_show_arrow (GTK_TOOLBAR (browser->transferbar), FALSE);
"last-web-search", &last_web_search,
"location-entry-search", &browser->location_entry_search,
"close-buttons-on-tabs", &close_buttons_on_tabs,
- "progress-in-location", &browser->progress_in_location,
"maximum-history-age", &browser->maximum_history_age,
"news-aggregator", &browser->news_aggregator,
NULL);
browser->show_statusbar = g_value_get_boolean (&value);
else if (name == g_intern_string ("speed-dial-in-new-tabs"))
browser->speed_dial_in_new_tabs = g_value_get_boolean (&value);
- else if (name == g_intern_string ("progress-in-location"))
- browser->progress_in_location = g_value_get_boolean (&value);
else if (name == g_intern_string ("search-engines-in-completion"))
{
if (g_value_get_boolean (&value))
gboolean show_transferbar : 1;
gboolean show_statusbar : 1;
MidoriToolbarStyle toolbar_style : 3;
- gboolean progress_in_location : 1;
gboolean search_engines_in_completion : 1;
gboolean compact_sidepanel : 1;
gboolean show_panel_controls : 1;
PROP_SHOW_STATUSBAR,
PROP_TOOLBAR_STYLE,
- PROP_PROGRESS_IN_LOCATION,
PROP_SEARCH_ENGINES_IN_COMPLETION,
PROP_TOOLBAR_ITEMS,
PROP_COMPACT_SIDEPANEL,
MIDORI_TOOLBAR_DEFAULT,
flags));
- /**
- * MidoriWebSettings:progress-in-location:
- *
- * Whether to show loading progress in the location entry.
- *
- * Since: 0.1.3
- */
- g_object_class_install_property (gobject_class,
- PROP_PROGRESS_IN_LOCATION,
- g_param_spec_boolean (
- "progress-in-location",
- _("Show progress in location entry"),
- _("Whether to show loading progress in the location entry"),
- TRUE,
- flags));
-
/**
* MidoriWebSettings:search-engines-in-completion:
*
case PROP_TOOLBAR_STYLE:
web_settings->toolbar_style = g_value_get_enum (value);
break;
- case PROP_PROGRESS_IN_LOCATION:
- web_settings->progress_in_location = g_value_get_boolean (value);
- break;
case PROP_SEARCH_ENGINES_IN_COMPLETION:
web_settings->search_engines_in_completion = g_value_get_boolean (value);
break;
case PROP_TOOLBAR_STYLE:
g_value_set_enum (value, web_settings->toolbar_style);
break;
- case PROP_PROGRESS_IN_LOCATION:
- g_value_set_boolean (value, web_settings->progress_in_location);
- break;
case PROP_SEARCH_ENGINES_IN_COMPLETION:
g_value_set_boolean (value, web_settings->search_engines_in_completion);
break;