From a2ae88b93b02c8dea6b1dfe3f5af7646d00860c1 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 23 Nov 2016 17:49:08 +0300 Subject: shell: use modern function inside GTK+3 code block (and drop #define) --- shell/ev-annotation-properties-dialog.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'shell') diff --git a/shell/ev-annotation-properties-dialog.c b/shell/ev-annotation-properties-dialog.c index bd95d1ec..68736b27 100644 --- a/shell/ev-annotation-properties-dialog.c +++ b/shell/ev-annotation-properties-dialog.c @@ -24,10 +24,6 @@ #include "ev-annotation-properties-dialog.h" -#if GTK_CHECK_VERSION (3, 0, 0) -#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y) -#endif - enum { PROP_0, PROP_ANNOT_TYPE @@ -211,7 +207,7 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog gtk_widget_set_hexpand (annot_dialog->opacity, TRUE); gtk_widget_show (annot_dialog->opacity); - hbox = gtk_hbox_new (FALSE, 6); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); label = gtk_label_new (NULL); markup = g_strdup_printf ("%s", _("Transparent")); -- cgit v1.2.1