diff options
author | raveit65 <[email protected]> | 2015-09-27 17:07:04 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2015-10-19 16:06:57 +0300 |
commit | 5609227c672d94e54edec26e2b4db5f9e1697e17 (patch) | |
tree | 58e3dd3e0336c733981d8c4213089f59af5f2931 /src/caja-property-browser.c | |
parent | d14fef384a435471860130f7337d5dea5bb824a0 (diff) | |
download | caja-5609227c672d94e54edec26e2b4db5f9e1697e17.tar.bz2 caja-5609227c672d94e54edec26e2b4db5f9e1697e17.tar.xz |
GTK3: Replace gtk_{v,h}box new with gtk_box_new
- gtk_{v,h}box usage is deprecated since gtk+-3.2.0
Diffstat (limited to 'src/caja-property-browser.c')
-rw-r--r-- | src/caja-property-browser.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/caja-property-browser.c b/src/caja-property-browser.c index d1d75f8d..afe91842 100644 --- a/src/caja-property-browser.c +++ b/src/caja-property-browser.c @@ -182,6 +182,10 @@ static GdkPixbuf * make_color_drag_image (CajaPropertyBro #define ERASE_OBJECT_NAME "erase.png" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) +#endif + enum { PROPERTY_TYPE @@ -347,7 +351,11 @@ caja_property_browser_init (CajaPropertyBrowser *property_browser) gtk_widget_show(temp_frame); gtk_container_add(GTK_CONTAINER(property_browser->details->title_box), temp_frame); +#if GTK_CHECK_VERSION (3, 0, 0) + temp_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); +#else temp_hbox = gtk_hbox_new(FALSE, 0); +#endif gtk_widget_show(temp_hbox); gtk_container_add(GTK_CONTAINER(temp_frame), temp_hbox); @@ -372,7 +380,11 @@ caja_property_browser_init (CajaPropertyBrowser *property_browser) temp_box = gtk_event_box_new(); gtk_widget_show(temp_box); +#if GTK_CHECK_VERSION (3, 0, 0) + property_browser->details->bottom_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); +#else property_browser->details->bottom_box = gtk_hbox_new (FALSE, 6); +#endif gtk_widget_show (property_browser->details->bottom_box); gtk_box_pack_end (GTK_BOX (vbox), temp_box, FALSE, FALSE, 0); @@ -1137,7 +1149,11 @@ caja_emblem_dialog_new (CajaPropertyBrowser *property_browser) gtk_widget_show (label); gtk_table_attach (GTK_TABLE(table), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0); +#if GTK_CHECK_VERSION (3, 0, 0) + widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); +#else widget = gtk_hbox_new (FALSE, 0); +#endif gtk_widget_show (widget); button = gtk_button_new (); |