ui/gtk/window.c

branch
newapi
changeset 413
b8e41d42f400
parent 411
3e91b7aff6a1
equal deleted inserted replaced
412:138b1089ba05 413:b8e41d42f400
134 atoi(width), 134 atoi(width),
135 atoi(height)); 135 atoi(height));
136 } else { 136 } else {
137 gtk_window_set_default_size( 137 gtk_window_set_default_size(
138 GTK_WINDOW(obj->widget), 138 GTK_WINDOW(obj->widget),
139 window_default_width, 139 window_default_width + sidebar*250,
140 window_default_height); 140 window_default_height);
141 } 141 }
142 142
143 obj->destroy = ui_window_widget_destroy; 143 obj->destroy = ui_window_widget_destroy;
144 g_signal_connect( 144 g_signal_connect(
234 GtkWidget *sidebar_vbox = ui_gtk_vbox_new(0); 234 GtkWidget *sidebar_vbox = ui_gtk_vbox_new(0);
235 gtk_paned_add1(GTK_PANED(paned), sidebar_vbox); 235 gtk_paned_add1(GTK_PANED(paned), sidebar_vbox);
236 gtk_paned_add2(GTK_PANED(paned), content_box); 236 gtk_paned_add2(GTK_PANED(paned), content_box);
237 BOX_ADD_EXPAND(GTK_BOX(vbox), paned); 237 BOX_ADD_EXPAND(GTK_BOX(vbox), paned);
238 g_object_set_data(G_OBJECT(obj->widget), "ui_sidebar", sidebar_vbox); 238 g_object_set_data(G_OBJECT(obj->widget), "ui_sidebar", sidebar_vbox);
239 gtk_paned_set_position (GTK_PANED(paned), 200);
239 } else { 240 } else {
240 BOX_ADD_EXPAND(GTK_BOX(vbox), content_box); 241 BOX_ADD_EXPAND(GTK_BOX(vbox), content_box);
241 } 242 }
242 243
243 #endif 244 #endif

mercurial