set the adjustments, so the GtkScrollBar arrows works again, set initial
2005-10-19 Carlos Garnacho Parro <carlosg@gnome.org> * control-center.c: set the adjustments, so the GtkScrollBar arrows works again, set initial adjustment to view the top of the canvas.
This commit is contained in:
parent
845d328106
commit
70f760aa9f
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-10-19 Carlos Garnacho Parro <carlosg@gnome.org>
|
||||
|
||||
* control-center.c: set the adjustments, so the GtkScrollBar arrows
|
||||
works again, set initial adjustment to view the top of the canvas.
|
||||
|
||||
2005-10-15 Rodrigo Moya <rodrigo@novell.com>
|
||||
|
||||
Fixes #315505
|
||||
|
|
|
@ -50,7 +50,9 @@ create_window (void)
|
|||
g_signal_connect (G_OBJECT (canvas), "selection-changed",
|
||||
G_CALLBACK (change_status), appbar);
|
||||
|
||||
sw = gtk_scrolled_window_new (NULL, NULL);
|
||||
sw = gtk_scrolled_window_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 10, 100, 100)),
|
||||
GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 10, 100, 100)));
|
||||
|
||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
gtk_container_add (GTK_CONTAINER (sw), canvas);
|
||||
|
||||
|
@ -58,6 +60,9 @@ create_window (void)
|
|||
|
||||
gtk_widget_show_all (window);
|
||||
|
||||
gtk_scrolled_window_set_vadjustment (GTK_SCROLLED_WINDOW (sw),
|
||||
GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 10, 100, 100)));
|
||||
|
||||
g_object_weak_ref (G_OBJECT (window), (GWeakNotify) gnome_cc_die, NULL);
|
||||
|
||||
return GTK_WINDOW (window);
|
||||
|
|
Loading…
Add table
Reference in a new issue