[evolution-rss] Bug 656126 - evolution-rss uses deprecated tk_[hv]box_new



commit 780e196eb0e7cbeda56413bfdb9654c83372eae3
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Tue Aug 23 00:28:38 2011 +0300

    Bug 656126 - evolution-rss uses deprecated tk_[hv]box_new

 src/rss-config-factory.c |   12 ++++++++++++
 src/rss.c                |    9 +++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/rss-config-factory.c b/src/rss-config-factory.c
index a08f1a4..1e17d39 100644
--- a/src/rss-config-factory.c
+++ b/src/rss-config-factory.c
@@ -1497,7 +1497,11 @@ remove_feed_dialog(gchar *msg)
 #endif
 	gtk_widget_show (dialog_vbox1);
 
+#if GTK_MAJOR_VERSION < 3
 	vbox1 = gtk_vbox_new (FALSE, 10);
+#else
+	vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
+#endif
 	gtk_widget_show (vbox1);
 	gtk_box_pack_start (
 		GTK_BOX (dialog_vbox1),
@@ -2253,7 +2257,11 @@ decorate_import_fs (gpointer data)
 	gtk_file_filter_add_pattern (filter, "*.xml");
 	gtk_file_chooser_set_filter(data, filter);
 
+#if GTK_MAJOR_VERSION < 3
 	vbox1 = gtk_vbox_new (FALSE, 0);
+#else
+	vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#endif
 	checkbutton1 = gtk_check_button_new_with_mnemonic (
 			_("Show article's summary"));
 	gtk_widget_show (checkbutton1);
@@ -3531,7 +3539,11 @@ e_plugin_lib_get_configure_widget (EPlugin *epl)
 		G_CALLBACK(start_check_cb),
 		(gpointer)GCONF_KEY_FEED_ICON);
 
+#if GTK_MAJOR_VERSION < 3
 	hbox = gtk_vbox_new (FALSE, 0);
+#else
+	hbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#endif
 
 	gtk_box_pack_start (
 		GTK_BOX (hbox),
diff --git a/src/rss.c b/src/rss.c
index ddade8d..e4dc507 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -1909,7 +1909,11 @@ org_gnome_rss_rfrcomm (EMFormatHTML *efh, void *eb,
 {
 	struct _org_gnome_rss_controls_pobject *po =
 			(struct _org_gnome_rss_controls_pobject *) pobject;
+#if GTK_MAJOR_VERSION < 3
 	GtkWidget *hbox = gtk_hbox_new (FALSE, 0);
+#else
+	GtkWidget *hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+#endif
 	GtkWidget *button;
 
 	gchar *mem = g_strdup_printf("%s(%d):",  _("Comments"), po->counter);
@@ -1932,8 +1936,13 @@ org_gnome_rss_controls (EMFormatHTML *efh, void *eb, EMFormatHTMLPObject *pobjec
 {
 	struct _org_gnome_rss_controls_pobject *po =
 			(struct _org_gnome_rss_controls_pobject *) pobject;
+#if GTK_MAJOR_VERSION < 3
 	GtkWidget *vbox = gtk_vbox_new (TRUE, 1);
 	GtkWidget *hbox2 = gtk_hbox_new (FALSE, 0);
+#else
+	GtkWidget *vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1);
+	GtkWidget *hbox2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+#endif
 	GtkWidget *label3 = gtk_label_new ("");
 	GtkWidget *button, *button2, *button3, *button4, *button5;
 	gchar *mem = g_strdup_printf(" <b>%s: </b>", _("Feed view"));



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