[eog] EogSidebar: Set orientation property via g_object_new
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogSidebar: Set orientation property via g_object_new
- Date: Thu, 15 Jan 2015 22:34:47 +0000 (UTC)
commit db3a16e905d106d6e88d7a205c12f2dc51c92b99
Author: Felix Riemann <friemann gnome org>
Date: Thu Jan 15 22:47:29 2015 +0100
EogSidebar: Set orientation property via g_object_new
src/eog-sidebar.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/eog-sidebar.c b/src/eog-sidebar.c
index df1c491..4965c3d 100644
--- a/src/eog-sidebar.c
+++ b/src/eog-sidebar.c
@@ -365,9 +365,6 @@ eog_sidebar_init (EogSidebar *eog_sidebar)
GtkWidget *arrow;
GtkWidget *image;
- gtk_orientable_set_orientation (GTK_ORIENTABLE (eog_sidebar),
- GTK_ORIENTATION_VERTICAL);
-
eog_sidebar->priv = eog_sidebar_get_instance_private (eog_sidebar);
/* data model */
@@ -460,7 +457,9 @@ eog_sidebar_new (void)
{
GtkWidget *eog_sidebar;
- eog_sidebar = g_object_new (EOG_TYPE_SIDEBAR, NULL);
+ eog_sidebar = g_object_new (EOG_TYPE_SIDEBAR,
+ "orientation", GTK_ORIENTATION_VERTICAL,
+ NULL);
return eog_sidebar;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]