[Xfce4-commits] [apps/gigolo] 25/35: Inherit from GtkBox, and set orientation to vertical in _init
noreply at xfce.org
noreply at xfce.org
Mon Oct 31 18:18:59 CET 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository apps/gigolo.
commit 5762bd26ea5cb611df78643951e6de1889a5f199
Author: Landry Breuil <landry at xfce.org>
Date: Sun Jun 19 17:14:38 2016 +0200
Inherit from GtkBox, and set orientation to vertical in _init
---
src/browsenetworkpanel.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/browsenetworkpanel.c b/src/browsenetworkpanel.c
index 8a8c7d8..4c2756a 100644
--- a/src/browsenetworkpanel.c
+++ b/src/browsenetworkpanel.c
@@ -67,7 +67,7 @@ static void tree_selection_changed_cb(GtkTreeSelection *selection, GigoloBrowseN
static void browse_network_finished_cb(G_GNUC_UNUSED GigoloBackendGVFS *bnd, GigoloBrowseNetworkPanel *panel);
-G_DEFINE_TYPE(GigoloBrowseNetworkPanel, gigolo_browse_network_panel, GTK_TYPE_VBOX);
+G_DEFINE_TYPE(GigoloBrowseNetworkPanel, gigolo_browse_network_panel, GTK_TYPE_BOX);
static void gigolo_browse_network_panel_finalize(GObject *object)
@@ -98,7 +98,7 @@ static void gigolo_browse_network_panel_class_init(GigoloBrowseNetworkPanelClass
g_object_class = G_OBJECT_CLASS(klass);
g_object_class->finalize = gigolo_browse_network_panel_finalize;
- gigolo_browse_network_panel_parent_class = (GtkVBoxClass*) g_type_class_peek(GTK_TYPE_VBOX);
+ gigolo_browse_network_panel_parent_class = (GtkBoxClass*) g_type_class_peek(GTK_TYPE_BOX);
g_type_class_add_private(klass, sizeof(GigoloBrowseNetworkPanelPrivate));
}
@@ -481,6 +481,7 @@ static void gigolo_browse_network_panel_init(GigoloBrowseNetworkPanel *panel)
priv->browse_network_signal_id = 0;
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (panel), GTK_ORIENTATION_VERTICAL);
toolbar = gtk_toolbar_new();
gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), GTK_TOOLBAR_BOTH_HORIZ);
gtk_toolbar_set_icon_size(GTK_TOOLBAR(toolbar), GTK_ICON_SIZE_BUTTON);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list