diff options
author | Allan LeSage <allanlesage@gmail.com> | 2012-01-23 15:16:17 -0600 |
---|---|---|
committer | Allan LeSage <allanlesage@gmail.com> | 2012-01-23 15:16:17 -0600 |
commit | fa3ed93da2ae4c79fed88fb005e8564076e41c8d (patch) | |
tree | 1592e843355ffdf266a2c3ce11fb3993b580a1a1 | |
parent | 6de22d3836fd5e193433c5ed28136c101ddc48e4 (diff) | |
download | ayatana-indicator-messages-fa3ed93da2ae4c79fed88fb005e8564076e41c8d.tar.gz ayatana-indicator-messages-fa3ed93da2ae4c79fed88fb005e8564076e41c8d.tar.bz2 ayatana-indicator-messages-fa3ed93da2ae4c79fed88fb005e8564076e41c8d.zip |
Added macro to gtk_hbox_new fix per charles' advice (and fixed tabination).
-rw-r--r-- | src/indicator-messages.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |