2
* EasyTAG - Tag editor for MP3 and Ogg Vorbis files
3
* Copyright (C) 2012 David King <amigadave@amigadave.com>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#include "gtk2_compat.h"
21
#if !GTK_CHECK_VERSION(3,0,0)
23
GtkWidget *gtk_box_new(GtkOrientation orientation,gint padding)
25
if (orientation==GTK_ORIENTATION_HORIZONTAL)
26
return gtk_hbox_new(FALSE,padding);
27
return gtk_vbox_new(FALSE,padding);
30
GtkWidget *gtk_button_box_new(GtkOrientation orientation)
32
if (orientation==GTK_ORIENTATION_HORIZONTAL)
33
return gtk_hbutton_box_new();
34
return gtk_vbutton_box_new();
37
GtkWidget *gtk_paned_new(GtkOrientation orientation)
39
if (orientation==GTK_ORIENTATION_HORIZONTAL)
40
return gtk_hpaned_new();
41
return gtk_vpaned_new();
44
GtkWidget *gtk_separator_new(GtkOrientation orientation)
46
if (orientation==GTK_ORIENTATION_HORIZONTAL)
47
return gtk_hseparator_new();
48
return gtk_vseparator_new();
51
#endif /* !GTK_CHECK_VERSION(3,0,0) */