diff options
author | Ted Gould <ted@gould.cx> | 2012-01-25 09:59:02 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-01-25 09:59:02 -0600 |
commit | cf6b9e5d9ca6f4c768c718c0d5395ee13a243904 (patch) | |
tree | 1592e843355ffdf266a2c3ce11fb3993b580a1a1 /src | |
parent | d3f2a4b29a08e4d191519eca806cd8b82f6d3f69 (diff) | |
parent | 8ab834d88a2e66186f2b31ed95b7de1f12d0831e (diff) | |
download | ayatana-indicator-messages-cf6b9e5d9ca6f4c768c718c0d5395ee13a243904.tar.gz ayatana-indicator-messages-cf6b9e5d9ca6f4c768c718c0d5395ee13a243904.tar.bz2 ayatana-indicator-messages-cf6b9e5d9ca6f4c768c718c0d5395ee13a243904.zip |
Using the new GTK3 box API to avoid deprecations
Diffstat (limited to 'src')
-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 d13de56..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(); |