summaryrefslogtreecommitdiff
path: root/logview
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-28 22:19:00 +0300
committerraveit65 <[email protected]>2018-01-30 17:06:31 +0100
commit2165616a83855afbb1c9b69c736de2e7c7dfbdf8 (patch)
tree7ac83afa0d7b77e49e6bb7f8b02383693c207d22 /logview
parent526b193ba678a7826af232526dfec0a37836a7e5 (diff)
downloadmate-utils-2165616a83855afbb1c9b69c736de2e7c7dfbdf8.tar.bz2
mate-utils-2165616a83855afbb1c9b69c736de2e7c7dfbdf8.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'logview')
-rw-r--r--logview/src/logview-findbar.c4
-rw-r--r--logview/src/logview-window.c12
2 files changed, 0 insertions, 16 deletions
diff --git a/logview/src/logview-findbar.c b/logview/src/logview-findbar.c
index 58cb9909..0246d8d6 100644
--- a/logview/src/logview-findbar.c
+++ b/logview/src/logview-findbar.c
@@ -215,12 +215,8 @@ logview_findbar_init (LogviewFindbar *findbar)
gtk_tool_item_set_expand (priv->status_item, TRUE);
priv->message = gtk_label_new ("");
gtk_label_set_use_markup (GTK_LABEL (priv->message), TRUE);
-#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (priv->message), 0.0);
gtk_label_set_yalign (GTK_LABEL (priv->message), 0.5);
-#else
- gtk_misc_set_alignment (GTK_MISC (priv->message), 0.0, 0.5);
-#endif
gtk_container_add (GTK_CONTAINER (priv->status_item), priv->message);
gtk_widget_show (priv->message);
gtk_toolbar_insert (gtoolbar, priv->status_item, -1);
diff --git a/logview/src/logview-window.c b/logview/src/logview-window.c
index 23fcc7b7..e20208b2 100644
--- a/logview/src/logview-window.c
+++ b/logview/src/logview-window.c
@@ -356,11 +356,7 @@ logview_help (GtkAction *action, GtkWidget *parent_window)
{
GError *error = NULL;
-#if GTK_CHECK_VERSION (3, 22, 0)
gtk_show_uri_on_window (GTK_WINDOW (parent_window),
-#else
- gtk_show_uri (gtk_widget_get_screen (parent_window),
-#endif
"help:mate-system-log", gtk_get_current_event_time (),
&error);
@@ -1200,12 +1196,8 @@ message_area_create_error_box (LogviewWindow *window,
gtk_box_pack_start (GTK_BOX (vbox), primary_label, TRUE, TRUE, 0);
gtk_label_set_use_markup (GTK_LABEL (primary_label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (primary_label), TRUE);
-#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (primary_label), 0.0);
gtk_label_set_yalign (GTK_LABEL (primary_label), 0.5);
-#else
- gtk_misc_set_alignment (GTK_MISC (primary_label), 0.0, 0.5);
-#endif
gtk_widget_set_can_focus (primary_label, TRUE);
gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
@@ -1218,12 +1210,8 @@ message_area_create_error_box (LogviewWindow *window,
gtk_label_set_use_markup (GTK_LABEL (secondary_label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (secondary_label), TRUE);
gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
-#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (secondary_label), 0.0);
gtk_label_set_yalign (GTK_LABEL (secondary_label), 0.5);
-#else
- gtk_misc_set_alignment (GTK_MISC (secondary_label), 0.0, 0.5);
-#endif
window->priv->message_secondary = secondary_label;