summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-01-27 19:07:58 +0100
committerraveit65 <[email protected]>2018-01-27 19:07:58 +0100
commit68da519dea443e0b3100065833887e867d8e615a (patch)
tree1bdd5e1d4a98c35c6d3c7710ac071a4c7be11d60
parent1d5300967f4a0e6c1a855f114fd074b96f5a3700 (diff)
downloadmate-calc-68da519dea443e0b3100065833887e867d8e615a.tar.bz2
mate-calc-68da519dea443e0b3100065833887e867d8e615a.tar.xz
building: bump required glib and gtk+ versions
and drop old bits
-rw-r--r--configure.ac4
-rw-r--r--src/math-window.c8
2 files changed, 2 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index a56b11d..809eb05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,9 +19,9 @@ dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################
-GLIB_REQUIRED=2.36.0
+GLIB_REQUIRED=2.50.0
GIO_REQUIRED=2.36.0
-GTK_REQUIRED=3.14.0
+GTK_REQUIRED=3.22.0
PKG_CHECK_MODULES(MATE_CALC, [
gtk+-3.0 >= $GTK_REQUIRED
diff --git a/src/math-window.c b/src/math-window.c
index 8268b3f..47b2f60 100644
--- a/src/math-window.c
+++ b/src/math-window.c
@@ -198,20 +198,12 @@ static void redo_cb(GtkWidget *widget, MathWindow *window)
static void help_cb(GtkWidget *widget, MathWindow *window)
{
-#if GTK_CHECK_VERSION (3, 22, 0)
GError *error = NULL;
gtk_show_uri_on_window(GTK_WINDOW(window),
"help:mate-calc",
gtk_get_current_event_time(),
&error);
-#else
- GdkScreen *screen;
- GError *error = NULL;
-
- screen = gtk_widget_get_screen(GTK_WIDGET(window));
- gtk_show_uri(screen, "help:mate-calc", gtk_get_current_event_time(), &error);
-#endif
if (error != NULL)
{