From 6de22d3836fd5e193433c5ed28136c101ddc48e4 Mon Sep 17 00:00:00 2001 From: Allan LeSage Date: Mon, 23 Jan 2012 13:58:33 -0600 Subject: Fix for gtk_hbox_new, werror on deprecated. --- src/indicator-messages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indicator-messages.c b/src/indicator-messages.c index d13de56..82fcfaf 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -695,7 +695,7 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm gint font_size = RIGHT_LABEL_FONT_SIZE; gtk_widget_style_get(GTK_WIDGET(gmi), "toggle-spacing", &padding, NULL); - GtkWidget * hbox = gtk_hbox_new(FALSE, padding); + GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, padding); /* Icon, probably someone's face or avatar on an IM */ mi_data->icon = gtk_image_new(); -- cgit v1.2.3 From 79faa63206faf6d3a00d6527e006936a05be933f Mon Sep 17 00:00:00 2001 From: Allan LeSage Date: Mon, 23 Jan 2012 15:06:35 -0600 Subject: Added macro to gtk_hbox_new fix per charles' advice. --- src/indicator-messages.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/indicator-messages.c b/src/indicator-messages.c index 82fcfaf..950dccf 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -695,7 +695,11 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm gint font_size = RIGHT_LABEL_FONT_SIZE; gtk_widget_style_get(GTK_WIDGET(gmi), "toggle-spacing", &padding, NULL); +#if GTK_CHECK_VERSION(3, 0, 0) GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, padding); +#else + GtkWidget * hbox = gtk_hbox_new(FALSE, padding); +#endif /* Icon, probably someone's face or avatar on an IM */ mi_data->icon = gtk_image_new(); -- cgit v1.2.3 From fa3ed93da2ae4c79fed88fb005e8564076e41c8d Mon Sep 17 00:00:00 2001 From: Allan LeSage Date: Mon, 23 Jan 2012 15:16:17 -0600 Subject: Added macro to gtk_hbox_new fix per charles' advice (and fixed tabination). --- src/indicator-messages.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/indicator-messages.c b/src/indicator-messages.c index 82fcfaf..5a96cb9 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -695,7 +695,11 @@ new_indicator_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, Dbusm gint font_size = RIGHT_LABEL_FONT_SIZE; gtk_widget_style_get(GTK_WIDGET(gmi), "toggle-spacing", &padding, NULL); +#if GTK_CHECK_VERSION(3, 0, 0) GtkWidget * hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, padding); +#else + GtkWidget * hbox = gtk_hbox_new(FALSE, padding); +#endif /* Icon, probably someone's face or avatar on an IM */ mi_data->icon = gtk_image_new(); -- cgit v1.2.3