g_object_set (action,
"stock-id", GTK_STOCK_STOP,
"tooltip", _("Stop loading the current page"), NULL);
- if (!browser->progress_in_location || !GTK_WIDGET_VISIBLE (browser->navigationbar))
+ if (!browser->progress_in_location || !gtk_widget_get_visible (browser->navigationbar))
gtk_widget_show (browser->progressbar);
- if (!GTK_WIDGET_VISIBLE (browser->statusbar) &&
- !GTK_WIDGET_VISIBLE (browser->navigationbar) &&
+ if (!gtk_widget_get_visible (browser->statusbar) &&
+ !gtk_widget_get_visible (browser->navigationbar) &&
browser->progress_in_location)
gtk_widget_show (browser->navigationbar);
if (browser->progress_in_location)
katze_assign (browser->statusbar_text, sokoke_format_uri_for_display (text));
- if (!GTK_WIDGET_VISIBLE (browser->statusbar) && !is_location)
+ if (!gtk_widget_get_visible (browser->statusbar) && !is_location)
{
GtkAction* action = _action_by_name (browser, "Location");
MidoriLocationAction* location_action = MIDORI_LOCATION_ACTION (action);
GtkWidget* check_toolbar;
GtkWidget* check_app;
- if (!browser->bookmarks || !GTK_WIDGET_VISIBLE (browser))
+ if (!browser->bookmarks || !gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
if (is_folder)
}
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_toolbar)))
- if (!GTK_WIDGET_VISIBLE (browser->bookmarkbar))
+ if (!gtk_widget_get_visible (browser->bookmarkbar))
_action_set_active (browser, "Bookmarkbar", TRUE);
folder = browser->bookmarks;
gchar* last_slash;
gchar* folder;
- if (!GTK_WIDGET_VISIBLE (browser))
+ if (!gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
dialog = sokoke_file_chooser_dialog_new (_("Save file as"),
gtk_widget_hide (GTK_WIDGET (browser->find_case));
gtk_widget_hide (GTK_WIDGET (browser->find_highlight));
gtk_widget_hide (GTK_WIDGET (browser->find_close));
- if (!GTK_WIDGET_VISIBLE (browser->find))
+ if (!gtk_widget_get_visible (browser->find))
gtk_entry_set_text (GTK_ENTRY (browser->find_text), "");
gtk_widget_show (browser->find);
gtk_window_set_focus (GTK_WINDOW (browser), browser->find_text);
gtk_editable_insert_text (GTK_EDITABLE (browser->find_text), typing, -1, &position);
gtk_editable_set_position (GTK_EDITABLE (browser->find_text), -1);
}
- if (GTK_WIDGET_VISIBLE (browser->find) && !typing)
+ if (gtk_widget_get_visible (browser->find) && !typing)
{
#if !HAVE_HILDON
gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (browser->find_text),
GtkWidget* dialog;
GtkWidget* view;
- if (!GTK_WIDGET_VISIBLE (browser))
+ if (!gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
dialog = sokoke_file_chooser_dialog_new (_("Open file"),
"AddDesktopShortcut", "AddNewsFeed" };
guint i;
- if (!GTK_WIDGET_VISIBLE (browser))
+ if (!gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
dialog = g_object_new (GTK_TYPE_DIALOG,
{
GtkWidget* view;
- if (!GTK_WIDGET_VISIBLE (browser))
+ if (!gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
if ((view = midori_browser_get_current_tab (browser)))
_action_find_activate (GtkAction* action,
MidoriBrowser* browser)
{
- if (GTK_WIDGET_VISIBLE (browser->find))
+ if (gtk_widget_get_visible (browser->find))
_midori_browser_find_done (browser);
else
{
{
static GtkWidget* dialog = NULL;
- if (!GTK_WIDGET_VISIBLE (browser))
+ if (!gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
if (!dialog)
sokoke_widget_set_visible (browser->menubar, active);
g_object_set_data (G_OBJECT (browser), "midori-toolbars-visible",
- GTK_WIDGET_VISIBLE (browser->menubar)
- || GTK_WIDGET_VISIBLE (browser->navigationbar)
+ gtk_widget_get_visible (browser->menubar)
+ || gtk_widget_get_visible (browser->navigationbar)
? (void*)0xdeadbeef : NULL);
}
sokoke_widget_set_visible (browser->navigationbar, active);
g_object_set_data (G_OBJECT (browser), "midori-toolbars-visible",
- GTK_WIDGET_VISIBLE (browser->menubar)
- || GTK_WIDGET_VISIBLE (browser->navigationbar)
+ gtk_widget_get_visible (browser->menubar)
+ || gtk_widget_get_visible (browser->navigationbar)
? (void*)0xdeadbeef : NULL);
}
_action_location_activate (GtkAction* action,
MidoriBrowser* browser)
{
- if (!GTK_WIDGET_VISIBLE (browser->navigationbar))
+ if (!gtk_widget_get_visible (browser->navigationbar))
gtk_widget_show (browser->navigationbar);
}
while (((proxy = g_slist_nth_data (proxies, i++))))
if (GTK_IS_TOOL_ITEM (proxy))
{
- if (!GTK_WIDGET_VISIBLE (browser->navigationbar))
+ if (!gtk_widget_get_visible (browser->navigationbar))
gtk_widget_show (browser->navigationbar);
return;
}
_action_search_focus_out (GtkAction* action,
MidoriBrowser* browser)
{
- if (GTK_WIDGET_VISIBLE (browser->statusbar) && !browser->show_navigationbar)
+ if (gtk_widget_get_visible (browser->statusbar) && !browser->show_navigationbar)
gtk_widget_hide (browser->navigationbar);
}
guint i;
KatzeItem* item;
- if (!browser->bookmarks || !GTK_WIDGET_VISIBLE (browser))
+ if (!browser->bookmarks || !gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
dialog = gtk_dialog_new_with_buttons (
gchar* path = NULL;
GError* error;
- if (!browser->bookmarks || !GTK_WIDGET_VISIBLE (browser))
+ if (!browser->bookmarks || !gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
file_dialog = sokoke_file_chooser_dialog_new (_("Save file as"),
{
static GtkWidget* dialog = NULL;
- if (!GTK_WIDGET_VISIBLE (browser))
+ if (!gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
if (!dialog)
{
static GtkWidget* dialog = NULL;
- if (!GTK_WIDGET_VISIBLE (browser))
+ if (!gtk_widget_get_visible (GTK_WIDGET (browser)))
return;
if (!dialog)
last_panel_position);
/* The browser may not yet be visible, which means that we can't set the
page. So we set it in midori_browser_size_allocate_cb */
- if (GTK_WIDGET_VISIBLE (browser))
+ if (gtk_widget_get_visible (GTK_WIDGET (browser)))
midori_panel_set_current_page (MIDORI_PANEL (browser->panel), last_panel_page);
else
g_object_set_data (G_OBJECT (browser), "last-page",
searches += i;
}
- if (!GTK_WIDGET_VISIBLE (action->popup))
+ if (!gtk_widget_get_visible (action->popup))
{
GtkWidget* toplevel = gtk_widget_get_toplevel (action->entry);
gtk_window_set_screen (GTK_WINDOW (action->popup),
GdkEventKey* event,
MidoriLocationAction* action)
{
- if (action->popup && GTK_WIDGET_VISIBLE (action->popup))
+ if (action->popup && gtk_widget_get_visible (action->popup))
{
midori_location_action_popdown_completion (action);
case GDK_Right:
case GDK_KP_Right:
- if (location_action->popup && GTK_WIDGET_VISIBLE (location_action->popup))
+ if (location_action->popup && gtk_widget_get_visible (location_action->popup))
{
GtkTreeModel* model = location_action->completion_model;
GtkTreeIter iter;
break;
case GDK_Escape:
{
- if (location_action->popup && GTK_WIDGET_VISIBLE (location_action->popup))
+ if (location_action->popup && gtk_widget_get_visible (location_action->popup))
{
midori_location_action_popdown_completion (location_action);
text = gtk_entry_get_text (entry);
}
case GDK_Page_Up:
case GDK_Page_Down:
- if (!(location_action->popup && GTK_WIDGET_VISIBLE (location_action->popup)))
+ if (!(location_action->popup && gtk_widget_get_visible (location_action->popup)))
return TRUE;
case GDK_Down:
case GDK_KP_Down:
{
GtkWidget* parent;
- if (location_action->popup && GTK_WIDGET_VISIBLE (location_action->popup))
+ if (location_action->popup && gtk_widget_get_visible (location_action->popup))
{
GtkTreeModel* model = location_action->completion_model;
gint matches = gtk_tree_model_iter_n_children (model, NULL);