[gnome-devel-docs] image_viewer.c: use gtk_box_new() instead gtk_[v|h]box_new
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] image_viewer.c: use gtk_box_new() instead gtk_[v|h]box_new
- Date: Thu, 9 Dec 2010 04:49:52 +0000 (UTC)
commit 856c30601adada64296fb375cc49227d8556e821
Author: Javier Jardón <jjardon gnome org>
Date: Wed Dec 8 23:46:00 2010 -0500
image_viewer.c: use gtk_box_new() instead gtk_[v|h]box_new
Also remove gtk_scrolled_window_set_policy() as GTK_POLICY_AUTOMATIC
is the default
demos/C/image-viewer/image_viewer.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/demos/C/image-viewer/image_viewer.c b/demos/C/image-viewer/image_viewer.c
index b34df0b..f5ed6e8 100644
--- a/demos/C/image-viewer/image_viewer.c
+++ b/demos/C/image-viewer/image_viewer.c
@@ -32,10 +32,9 @@ int main( int argc,
/* Make window scrollable. */
scroll_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scroll_window), app_widgets.image);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
/* Button's box. */
- hbox = gtk_hbox_new (FALSE,5);
+ hbox = gtk_box_new (GTK_HORIENTATION_HORIZONTAL, 5);
open_button = gtk_button_new_with_label( "Open...");
gtk_box_pack_start (GTK_BOX (hbox), open_button, TRUE, TRUE, 0);
@@ -43,7 +42,7 @@ int main( int argc,
G_CALLBACK (on_open_button_clicked), &app_widgets);
/* Main window layout. */
- vbox = gtk_vbox_new (FALSE,0);
+ vbox = gtk_box_new (GTK_HORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (vbox), scroll_window, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]