"tooltip", _("Reload the current page"),
"sensitive", can_reload, NULL);
gtk_widget_hide (browser->progressbar);
- if (!sokoke_object_get_boolean (browser->settings, "show-navigationbar")
- && !sokoke_object_get_boolean (browser->settings, "show-statusbar"))
+ if (!katze_object_get_boolean (browser->settings, "show-navigationbar")
+ && !katze_object_get_boolean (browser->settings, "show-statusbar"))
gtk_widget_hide (browser->navigationbar);
}
else
_midori_browser_set_current_page_smartly (MidoriBrowser* browser,
gint n)
{
- if (!sokoke_object_get_boolean (browser->settings,
+ if (!katze_object_get_boolean (browser->settings,
"open-tabs-in-the-background"))
midori_browser_set_current_page (browser, n);
}
uri = midori_view_get_display_uri (MIDORI_VIEW (view));
action = _action_by_name (browser, "Location");
- if (sokoke_object_get_boolean (browser->settings, "remember-last-visited-pages"))
+ if (katze_object_get_boolean (browser->settings, "remember-last-visited-pages"))
midori_location_action_set_icon_for_uri (
MIDORI_LOCATION_ACTION (action), midori_view_get_icon (view), uri);
}
if (midori_view_get_load_status (MIDORI_VIEW (view))
== MIDORI_LOAD_COMMITTED)
{
- if (sokoke_object_get_boolean (browser->settings,
+ if (katze_object_get_boolean (browser->settings,
"remember-last-visited-pages"))
midori_location_action_add_uri (MIDORI_LOCATION_ACTION (action), uri);
}
uri = midori_view_get_display_uri (MIDORI_VIEW (view));
title = midori_view_get_display_title (MIDORI_VIEW (view));
action = _action_by_name (browser, "Location");
- if (sokoke_object_get_boolean (browser->settings, "remember-last-visited-pages"))
+ if (katze_object_get_boolean (browser->settings, "remember-last-visited-pages"))
midori_location_action_set_title_for_uri (
MIDORI_LOCATION_ACTION (action), title, uri);
if (midori_view_get_load_status (MIDORI_VIEW (view)) == MIDORI_LOAD_COMMITTED)
g_signal_connect (view, "leave-notify-event",
G_CALLBACK (midori_browser_tab_leave_notify_event_cb), browser);
- if (sokoke_object_get_boolean (browser->settings, "open-tabs-next-to-current"))
+ if (katze_object_get_boolean (browser->settings, "open-tabs-next-to-current"))
{
n = gtk_notebook_get_current_page (GTK_NOTEBOOK (browser->notebook));
gtk_notebook_insert_page (GTK_NOTEBOOK (browser->notebook), view,
_action_location_activate (GtkAction* action,
MidoriBrowser* browser)
{
- if (!sokoke_object_get_boolean (browser->settings, "show-navigationbar"))
+ if (!katze_object_get_boolean (browser->settings, "show-navigationbar"))
gtk_widget_show (browser->navigationbar);
}
_action_location_focus_out (GtkAction* action,
MidoriBrowser* browser)
{
- if (!sokoke_object_get_boolean (browser->settings, "show-navigationbar"))
+ if (!katze_object_get_boolean (browser->settings, "show-navigationbar"))
gtk_widget_hide (browser->navigationbar);
}
MidoriBrowser* browser)
{
if (GTK_WIDGET_VISIBLE (browser->statusbar) &&
- !sokoke_object_get_boolean (browser->settings, "show-navigationbar"))
+ !katze_object_get_boolean (browser->settings, "show-navigationbar"))
gtk_widget_hide (browser->navigationbar);
}
gint age;
gint newage;
- if (!sokoke_object_get_boolean (browser->settings, "remember-last-visited-pages"))
+ if (!katze_object_get_boolean (browser->settings, "remember-last-visited-pages"))
return;
treeview = GTK_TREE_VIEW (browser->panel_history);
g_object_unref (layout);
}
-gint
-sokoke_object_get_int (gpointer object,
- const gchar* property)
-{
- gint value = 0;
-
- g_return_val_if_fail (object != NULL, FALSE);
- g_return_val_if_fail (G_IS_OBJECT (object), FALSE);
- /* FIXME: Check value type */
-
- g_object_get (object, property, &value, NULL);
- return value;
-}
-
-gboolean
-sokoke_object_get_boolean (gpointer object,
- const gchar* property)
-{
- gboolean value = FALSE;
-
- g_return_val_if_fail (object != NULL, FALSE);
- g_return_val_if_fail (G_IS_OBJECT (object), FALSE);
- /* FIXME: Check value type */
-
- g_object_get (object, property, &value, NULL);
- return value;
-}
-
/**
* sokoke_action_create_popup_menu_item:
* @action: a #GtkAction