diff --git a/src/applets/swap.c b/src/applets/swap.c index e7321da..c3626fc 100644 --- a/src/applets/swap.c +++ b/src/applets/swap.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2010-2013 Pierre Pronchery */ +/* Copyright (c) 2010-2014 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Panel */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -82,7 +82,11 @@ static Swap * _swap_init(PanelAppletHelper * helper, GtkWidget ** widget) return NULL; } swap->helper = helper; +#if GTK_CHECK_VERSION(3, 0, 0) + swap->widget = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); +#else swap->widget = gtk_hbox_new(FALSE, 0); +#endif desc = pango_font_description_new(); pango_font_description_set_weight(desc, PANGO_WEIGHT_BOLD); label = gtk_label_new(_("Swap:"));