[gnome-system-monitor/migrateui] Use GtkBox instead of HBox and VBox in sysinfo
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor/migrateui] Use GtkBox instead of HBox and VBox in sysinfo
- Date: Fri, 27 Jul 2012 20:42:31 +0000 (UTC)
commit 063cb1e524f8f023d58bbd747364dff9c014d962
Author: Robert Roth <robert roth off gmail com>
Date: Fri Jul 27 23:35:45 2012 +0300
Use GtkBox instead of HBox and VBox in sysinfo
data/interface2.ui | 4 +++-
src/sysinfo.cpp | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/interface2.ui b/data/interface2.ui
index a479051..c636592 100644
--- a/data/interface2.ui
+++ b/data/interface2.ui
@@ -22,7 +22,9 @@
<object class="GtkBox" id="sysinfo_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="border_width">6</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<placeholder/>
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index 58dfb37..cf4ccf3 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -685,7 +685,7 @@ procman_create_sysinfo_view(void)
gchar *markup;
- hbox = gtk_hbox_new(FALSE, 12);
+ hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 12);
gtk_container_set_border_width(GTK_CONTAINER(hbox), 6);
/* left-side logo */
@@ -698,7 +698,7 @@ procman_create_sysinfo_view(void)
g_signal_connect(G_OBJECT(logo), "draw",
G_CALLBACK(sysinfo_logo_draw), NULL);
- vbox = gtk_vbox_new(FALSE, 12);
+ vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 12);
gtk_container_set_border_width(GTK_CONTAINER(vbox), 12);
gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]