summaryrefslogtreecommitdiff
path: root/pluma/pluma-statusbar.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-30 00:56:56 +0100
committerStefano Karapetsas <[email protected]>2013-10-30 00:56:56 +0100
commit7f0ccea48196a0da9523db3d566ee8020cd742a1 (patch)
tree4a66f87edcc70ca3949c750148df218c9a41ba28 /pluma/pluma-statusbar.c
parent5f87f646777bf5b09610bbc6eed8fafd007f34c6 (diff)
downloadpluma-7f0ccea48196a0da9523db3d566ee8020cd742a1.tar.bz2
pluma-7f0ccea48196a0da9523db3d566ee8020cd742a1.tar.xz
pluma: Add GTK3 support
Diffstat (limited to 'pluma/pluma-statusbar.c')
-rw-r--r--pluma/pluma-statusbar.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/pluma/pluma-statusbar.c b/pluma/pluma-statusbar.c
index e0c9d0d0..21ab1053 100644
--- a/pluma/pluma-statusbar.c
+++ b/pluma/pluma-statusbar.c
@@ -76,6 +76,15 @@ get_overwrite_mode_length (void)
return 2 + MAX (g_utf8_strlen (_("OVR"), -1), g_utf8_strlen (_("INS"), -1));
}
+#if GTK_CHECK_VERSION (3, 0, 0)
+static void
+gtk_statusbar_set_has_resize_grip (GtkStatusbar *statusbar, gboolean state)
+{
+ /* nothing */
+ /* https://developer.gnome.org/gtk3/stable/ch24s02.html#id-1.6.3.4.17 */
+}
+#endif
+
static void
pluma_statusbar_notify (GObject *object,
GParamSpec *pspec)
@@ -389,7 +398,11 @@ pluma_statusbar_flash_message (PlumaStatusbar *statusbar,
msg);
statusbar->priv->flash_timeout = g_timeout_add (flash_length,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ (GSourceFunc) remove_message_timeout,
+#else
(GtkFunction) remove_message_timeout,
+#endif
statusbar);
g_free (msg);