[gthumb] use gtk_paned_new instead of gtk_[vh]paned_new



commit bac0272b5e7fce1095a3c926ee82f8a6316ef7e3
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Nov 1 17:20:46 2011 +0100

    use gtk_paned_new instead of gtk_[vh]paned_new

 gthumb/gth-browser.c         |   14 +++++++-------
 gthumb/gth-file-properties.c |    2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 3e0c0db..496963a 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -3720,9 +3720,9 @@ pref_ui_viewer_thumbnails_orient_changed (GConfClient *client,
 
 	viewer_thumbnails_orientation = eel_gconf_get_enum (PREF_UI_VIEWER_THUMBNAILS_ORIENT, GTK_TYPE_ORIENTATION, GTK_ORIENTATION_HORIZONTAL);
 	if (viewer_thumbnails_orientation == GTK_ORIENTATION_HORIZONTAL)
-		viewer_thumbnails_pane = gtk_vpaned_new ();
+		viewer_thumbnails_pane = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
 	else
-		viewer_thumbnails_pane = gtk_hpaned_new ();
+		viewer_thumbnails_pane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
 
 	child1 = gtk_paned_get_child1 (GTK_PANED (browser->priv->viewer_thumbnails_pane));
 	child2 = gtk_paned_get_child2 (GTK_PANED (browser->priv->viewer_thumbnails_pane));
@@ -4200,13 +4200,13 @@ gth_browser_init (GthBrowser *browser)
 
 	viewer_thumbnails_orientation = eel_gconf_get_enum (PREF_UI_VIEWER_THUMBNAILS_ORIENT, GTK_TYPE_ORIENTATION, GTK_ORIENTATION_HORIZONTAL);
 	if (viewer_thumbnails_orientation == GTK_ORIENTATION_HORIZONTAL)
-		browser->priv->viewer_thumbnails_pane = gtk_vpaned_new ();
+		browser->priv->viewer_thumbnails_pane = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
 	else
-		browser->priv->viewer_thumbnails_pane = gtk_hpaned_new ();
+		browser->priv->viewer_thumbnails_pane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
 	gtk_widget_show (browser->priv->viewer_thumbnails_pane);
 	gth_window_attach_content (GTH_WINDOW (browser), GTH_BROWSER_PAGE_VIEWER, browser->priv->viewer_thumbnails_pane);
 
-	browser->priv->viewer_sidebar_pane = gtk_hpaned_new ();
+	browser->priv->viewer_sidebar_pane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
 	gtk_widget_set_size_request (browser->priv->viewer_sidebar_pane, -1, MIN_VIEWER_SIZE);
 	gtk_widget_show (browser->priv->viewer_sidebar_pane);
 	if (viewer_thumbnails_orientation == GTK_ORIENTATION_HORIZONTAL)
@@ -4295,13 +4295,13 @@ gth_browser_init (GthBrowser *browser)
 
 	/* main content */
 
-	browser->priv->browser_container = gtk_hpaned_new ();
+	browser->priv->browser_container = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
 	gtk_widget_show (browser->priv->browser_container);
 	gth_window_attach_content (GTH_WINDOW (browser), GTH_BROWSER_PAGE_BROWSER, browser->priv->browser_container);
 
 	/* the browser sidebar */
 
-	browser->priv->browser_sidebar = gtk_vpaned_new ();
+	browser->priv->browser_sidebar = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
 	gtk_widget_set_size_request (browser->priv->browser_sidebar, eel_gconf_get_integer (PREF_UI_BROWSER_SIDEBAR_WIDTH, DEF_SIDEBAR_WIDTH), -1);
 	gtk_widget_show (browser->priv->browser_sidebar);
 	gtk_paned_pack1 (GTK_PANED (browser->priv->browser_container), browser->priv->browser_sidebar, FALSE, TRUE);
diff --git a/gthumb/gth-file-properties.c b/gthumb/gth-file-properties.c
index 0d74da3..5599ffb 100644
--- a/gthumb/gth-file-properties.c
+++ b/gthumb/gth-file-properties.c
@@ -332,7 +332,7 @@ gth_file_properties_init (GthFileProperties *self)
 
 	gtk_box_set_spacing (GTK_BOX (self), 6);
 
-	vpaned = gtk_vpaned_new ();
+	vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
 	gtk_widget_show (vpaned);
 	gtk_box_pack_start (GTK_BOX (self), vpaned, TRUE, TRUE, 0);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]