summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-23 17:49:08 +0300
committermonsta <[email protected]>2016-11-23 17:52:40 +0300
commita2ae88b93b02c8dea6b1dfe3f5af7646d00860c1 (patch)
treef3955a68c315a65bfcb80e961c9aebf0621cb768
parent389ab5b1c211f7319a3d4fa67544730973b65fb6 (diff)
downloadatril-a2ae88b93b02c8dea6b1dfe3f5af7646d00860c1.tar.bz2
atril-a2ae88b93b02c8dea6b1dfe3f5af7646d00860c1.tar.xz
shell: use modern function inside GTK+3 code block (and drop #define)
-rw-r--r--shell/ev-annotation-properties-dialog.c6
1 files changed, 1 insertions, 5 deletions
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 ("<small>%s</small>", _("Transparent"));