summaryrefslogtreecommitdiff
path: root/src/ui/fixedtip.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-27 23:29:02 +0300
committerraveit65 <[email protected]>2018-01-28 16:15:18 +0100
commit16de6ccd2906b93f79880612b31a12a1e53557c7 (patch)
treec1643f9e04908007ee58457f7532225a9f56d7bd /src/ui/fixedtip.c
parent4525d9b629ed76df0bc7d9b10b52c990fa112351 (diff)
downloadmarco-16de6ccd2906b93f79880612b31a12a1e53557c7.tar.bz2
marco-16de6ccd2906b93f79880612b31a12a1e53557c7.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'src/ui/fixedtip.c')
-rw-r--r--src/ui/fixedtip.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
index 346b6ffa..b5253cd6 100644
--- a/src/ui/fixedtip.c
+++ b/src/ui/fixedtip.c
@@ -67,11 +67,7 @@ meta_fixed_tip_show (int root_x, int root_y,
{
gint w;
gint h;
-#if GTK_CHECK_VERSION (3, 22, 0)
GdkMonitor *mon_num;
-#else
- gint mon_num;
-#endif
GdkRectangle monitor;
gint screen_right_edge;
@@ -99,12 +95,8 @@ meta_fixed_tip_show (int root_x, int root_y,
label = gtk_label_new (NULL);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
-#if GTK_CHECK_VERSION (3, 16, 0)
gtk_label_set_xalign (GTK_LABEL (label), 0.5);
gtk_label_set_yalign (GTK_LABEL (label), 0.5);
-#else
- gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
-#endif
gtk_widget_show (label);
gtk_container_set_border_width (GTK_CONTAINER (tip), 4);
@@ -114,13 +106,8 @@ meta_fixed_tip_show (int root_x, int root_y,
G_CALLBACK (gtk_widget_destroyed), &tip);
}
-#if GTK_CHECK_VERSION (3, 22, 0)
mon_num = gdk_display_get_monitor_at_point (gdk_screen_get_display (screen), root_x, root_y);
gdk_monitor_get_geometry (mon_num, &monitor);
-#else
- mon_num = gdk_screen_get_monitor_at_point (screen, root_x, root_y);
- gdk_screen_get_monitor_geometry (screen, mon_num, &monitor);
-#endif
screen_right_edge = monitor.x + monitor.width;
gtk_label_set_markup (GTK_LABEL (label), markup_text);