[gnome-system-log] logview: don't use deprecated GtkHBox/GtkVBox
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-log] logview: don't use deprecated GtkHBox/GtkVBox
- Date: Tue, 25 Oct 2011 15:41:45 +0000 (UTC)
commit 87372200ab9e07e956a5dbf5a325b26d946402c4
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Oct 25 11:27:08 2011 -0400
logview: don't use deprecated GtkHBox/GtkVBox
Use GtkBox API instead.
src/logview-findbar.c | 2 +-
src/logview-window.c | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/logview-findbar.c b/src/logview-findbar.c
index cbba5f0..0257a67 100644
--- a/src/logview-findbar.c
+++ b/src/logview-findbar.c
@@ -167,7 +167,7 @@ logview_findbar_init (LogviewFindbar *findbar)
w = gtk_alignment_new (0.0, 0.5, 1.0, 1.0);
gtk_alignment_set_padding (GTK_ALIGNMENT (w), 0, 0, 2, 2);
- box = gtk_hbox_new (FALSE, 12);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_container_add (GTK_CONTAINER (w), box);
label = gtk_label_new_with_mnemonic (_("_Find:"));
diff --git a/src/logview-window.c b/src/logview-window.c
index b6c5128..ee45963 100644
--- a/src/logview-window.c
+++ b/src/logview-window.c
@@ -1170,7 +1170,7 @@ message_area_create_error_box (LogviewWindow *window,
GtkWidget *primary_label;
GtkWidget *secondary_label;
- hbox_content = gtk_hbox_new (FALSE, 8);
+ hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
gtk_widget_show (hbox_content);
image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_ERROR,
@@ -1179,7 +1179,7 @@ message_area_create_error_box (LogviewWindow *window,
gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0);
@@ -1273,7 +1273,7 @@ logview_window_init (LogviewWindow *logview)
logview_prefs_get_stored_window_size (priv->prefs, &width, &height);
gtk_window_set_default_size (GTK_WINDOW (logview), width, height);
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (logview), vbox);
/* create menus */
@@ -1315,7 +1315,7 @@ logview_window_init (LogviewWindow *logview)
gtk_widget_show (hpaned);
/* first pane : sidebar (list of logs) */
- priv->sidebar = gtk_vbox_new (FALSE, 0);
+ priv->sidebar = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (priv->sidebar);
/* first pane: log list */
@@ -1338,7 +1338,7 @@ logview_window_init (LogviewWindow *logview)
G_CALLBACK (loglist_day_cleared_cb), logview);
/* second pane: log */
- main_view = gtk_vbox_new (FALSE, 0);
+ main_view = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_paned_pack2 (GTK_PANED (hpaned), main_view, TRUE, TRUE);
/* second pane: error message area */
@@ -1385,7 +1385,7 @@ logview_window_init (LogviewWindow *logview)
}
/* version selector */
- priv->version_bar = gtk_hbox_new (FALSE, 0);
+ priv->version_bar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_set_border_width (GTK_CONTAINER (priv->version_bar), 3);
priv->version_selector = gtk_combo_box_text_new ();
g_signal_connect (priv->version_selector, "changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]