From 99e94b990bb7507ec66a9e1f504824e09660fc1a Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 27 Jun 2014 19:56:45 +0200 Subject: [PATCH] Avoid warnings when compiling with Gtk+ 3.0 --- src/applets/mixer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/applets/mixer.c b/src/applets/mixer.c index 6640fb5..9a81394 100644 --- a/src/applets/mixer.c +++ b/src/applets/mixer.c @@ -28,7 +28,11 @@ #include #include #include +#include #include +#if GTK_CHECK_VERSION(3, 0, 0) +# include +#endif #include "Panel.h" #define _(string) gettext(string) @@ -297,7 +301,7 @@ static GtkWidget * _settings_widget(Mixer * mixer) gtk_container_set_border_width(GTK_CONTAINER(vbox2), 4); /* width */ #if GTK_CHECK_VERSION(3, 0, 0) - hbox = gtk_hbox_new(FALSE, 4); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif @@ -312,7 +316,7 @@ static GtkWidget * _settings_widget(Mixer * mixer) gtk_box_pack_start(GTK_BOX(vbox2), hbox, FALSE, TRUE, 0); /* height */ #if GTK_CHECK_VERSION(3, 0, 0) - hbox = gtk_hbox_new(FALSE, 4); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); #else hbox = gtk_hbox_new(FALSE, 4); #endif