summaryrefslogtreecommitdiff
path: root/src/gtk-utils.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-28 20:22:11 +0300
committerraveit65 <[email protected]>2018-01-30 09:31:07 +0100
commit43782fd2ee8fe6c60a64d766368254203359ae78 (patch)
treea018799dac09038ab885a5790ea68a87838bba23 /src/gtk-utils.c
parentcd3f7625ca7b2fa35cf3d0b8fa8dde53a155000e (diff)
downloadengrampa-43782fd2ee8fe6c60a64d766368254203359ae78.tar.bz2
engrampa-43782fd2ee8fe6c60a64d766368254203359ae78.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'src/gtk-utils.c')
-rw-r--r--src/gtk-utils.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 10b6ecf..6c3428b 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -214,12 +214,8 @@ _gtk_request_dialog_run (GtkWindow *parent,
label = gtk_label_new_with_mnemonic (message);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_selectable (GTK_LABEL (label), FALSE);
-#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_label_set_yalign (GTK_LABEL (label), 0.0);
-#else
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
-#endif
entry = gtk_entry_new ();
gtk_entry_set_width_chars (GTK_ENTRY (entry), 50);
@@ -386,12 +382,8 @@ _gtk_error_dialog_new (GtkWindow *parent,
label = gtk_label_new ("");
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_selectable (GTK_LABEL (label), TRUE);
-#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_label_set_yalign (GTK_LABEL (label), 0.0);
-#else
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
-#endif
escaped_message = g_markup_escape_text (primary_text, -1);
if (secondary_text != NULL) {
@@ -739,13 +731,8 @@ show_help_dialog (GtkWindow *parent,
GError *error = NULL;
uri = g_strconcat ("help:engrampa", section ? "/" : NULL, section, NULL);
-#if GTK_CHECK_VERSION (3, 22, 0)
if (! gtk_show_uri_on_window (parent, uri, GDK_CURRENT_TIME, &error)) {
GtkWidget *dialog;
-#else
- if (! gtk_show_uri (gtk_window_get_screen (parent), uri, GDK_CURRENT_TIME, &error)) {
- GtkWidget *dialog;
-#endif
dialog = _gtk_message_dialog_new (parent,
GTK_DIALOG_DESTROY_WITH_PARENT,