Use katze_object_get_foo instead of sokoke_object_get_foo

This commit is contained in:
Christian Dywan 2008-11-18 23:10:21 +01:00
parent 1e6c22d94a
commit 58cb93d900
5 changed files with 12 additions and 49 deletions

View file

@ -253,8 +253,8 @@ _midori_browser_update_interface (MidoriBrowser* browser)
"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
@ -298,7 +298,7 @@ static void
_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);
}
@ -356,7 +356,7 @@ midori_view_notify_icon_cb (MidoriView* view,
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);
}
@ -375,7 +375,7 @@ midori_view_notify_load_status_cb (GtkWidget* view,
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);
}
@ -445,7 +445,7 @@ midori_view_notify_title_cb (GtkWidget* view,
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)
@ -910,7 +910,7 @@ _midori_browser_add_tab (MidoriBrowser* browser,
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,
@ -1963,7 +1963,7 @@ static void
_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);
}
@ -1985,7 +1985,7 @@ static void
_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);
}
@ -2162,7 +2162,7 @@ _action_search_focus_out (GtkAction* action,
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);
}
@ -3541,7 +3541,7 @@ midori_browser_new_history_item (MidoriBrowser* browser,
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);

View file

@ -409,7 +409,6 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout,
gchar* skey;
gchar* temp;
gchar** parts;
glong len;
gtk_tree_model_get (model, iter, URI_COL, &uri, TITLE_COL, &title, -1);

View file

@ -415,7 +415,7 @@ entry_key_press_event (GtkWidget* widget,
case GDK_Down:
case GDK_Up:
{
if (!sokoke_object_get_boolean (location_entry, "popup-shown"))
if (!katze_object_get_boolean (location_entry, "popup-shown"))
gtk_combo_box_popup (GTK_COMBO_BOX (location_entry));
return TRUE;
}

View file

@ -498,34 +498,6 @@ sokoke_widget_get_text_size (GtkWidget* widget,
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

View file

@ -115,14 +115,6 @@ sokoke_widget_get_text_size (GtkWidget* widget,
gint* width,
gint* height);
gint
sokoke_object_get_int (gpointer object,
const gchar* property);
gboolean
sokoke_object_get_boolean (gpointer object,
const gchar* property);
GtkWidget*
sokoke_action_create_popup_menu_item (GtkAction* action);