You need to sign in or sign up before continuing.
Commit 814a378b authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix setting initial splitter position in paned dialog

parent 8d72aaa3
......@@ -49,8 +49,6 @@ paned_create_widget (GtkWidget * dlg)
paned = w = gtk_paned_new (options.paned_data.orient);
gtk_widget_set_name (w, "yad-paned-widget");
gtk_paned_set_position (GTK_PANED (w), options.paned_data.splitter);
s = gtk_socket_new ();
gtk_paned_add1 (GTK_PANED (w), s);
g_object_set_data (G_OBJECT (w), "s1", s);
......@@ -78,6 +76,10 @@ paned_swallow_childs (void)
gtk_socket_add_id (GTK_SOCKET (s1), tabs[1].xid);
if (tabs[2].pid != -1)
gtk_socket_add_id (GTK_SOCKET (s2), tabs[2].xid);
/* must be after embedding children */
if (options.paned_data.splitter > 0)
gtk_paned_set_position (GTK_PANED (paned), options.paned_data.splitter);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment