"news-aggregator", &browser->news_aggregator,
NULL);
+ midori_findbar_set_close_button_left (MIDORI_FINDBAR (browser->find),
+ katze_object_get_boolean (browser->settings, "close-buttons-left"));
+
if (remember_last_window_size)
{
if (browser->last_window_width && browser->last_window_height)
{
katze_assign (browser->news_aggregator, g_value_dup_string (&value));
}
+ else if (name == g_intern_string ("close-buttons-left"))
+ {
+ midori_findbar_set_close_button_left (MIDORI_FINDBAR (browser->find),
+ g_value_get_boolean (&value));
+ }
else if (!g_object_class_find_property (G_OBJECT_GET_CLASS (web_settings),
name))
g_warning (_("Unexpected setting '%s'"), name);
_("Close Findbar"));
g_signal_connect (findbar->find_close, "clicked",
G_CALLBACK (midori_findbar_button_close_clicked_cb), findbar);
- #if HAVE_OSX
- gtk_toolbar_insert (GTK_TOOLBAR (findbar), findbar->find_close, 0);
- #else
gtk_toolbar_insert (GTK_TOOLBAR (findbar), findbar->find_close, -1);
- #endif
sokoke_container_show_children (GTK_CONTAINER (findbar));
}
}
}
+void
+midori_findbar_set_close_button_left (MidoriFindbar* findbar,
+ gboolean close_button_left)
+{
+ g_object_ref (findbar->find_close);
+ gtk_container_remove (GTK_CONTAINER (findbar),
+ GTK_WIDGET (findbar->find_close));
+ gtk_toolbar_insert (GTK_TOOLBAR (findbar), findbar->find_close,
+ close_button_left ? 0 : -1);
+ g_object_unref (findbar->find_close);
+}
gboolean found,
gchar* typing);
+void
+midori_findbar_set_close_button_left (MidoriFindbar* findbar,
+ gboolean close_button_left);
+
G_END_DECLS
#endif /* __MIDORI_FINDBAR_H__ */