gboolean right_aligned = katze_object_get_boolean (panel, "right-aligned");
GtkWidget* hpaned = gtk_widget_get_parent (browser->panel);
GtkWidget* vpaned = gtk_widget_get_parent (browser->notebook);
+ gint paned_position = gtk_paned_get_position (GTK_PANED (hpaned));
+ gint paned_size = hpaned->allocation.width;
if (browser->settings)
g_object_set (browser->settings, "right-align-sidepanel",
gtk_paned_pack1 (GTK_PANED (hpaned), browser->panel, FALSE, FALSE);
gtk_paned_pack2 (GTK_PANED (hpaned), vpaned, FALSE, FALSE);
}
+ gtk_paned_set_position (GTK_PANED (hpaned), paned_size - paned_position);
g_object_unref (browser->panel);
g_object_unref (vpaned);
}
/**
* midori_panel_set_right_aligned:
- * @compact: %TRUE if the panel should be aligned to the right
+ * @right_aligned: %TRUE if the panel should be aligned to the right
*
* Determines if the panel should be right aligned.
*