[gtk+/wip/matthiasc/settings: 2/4] Include gdk-private.h
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/settings: 2/4] Include gdk-private.h
- Date: Fri, 17 Nov 2017 22:57:08 +0000 (UTC)
commit 2d591cde78d42dc56e896791c489ed22e2446253
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 17 16:34:04 2017 -0500
Include gdk-private.h
This gives us access to private gdk api.
docs/reference/gdk/gdk4-sections.txt | 2 --
gdk/gdk-private.h | 5 +++++
gdk/gdkdisplay.c | 23 -----------------------
gdk/gdkdisplay.h | 7 -------
gtk/gtksettings.c | 1 +
5 files changed, 6 insertions(+), 32 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index daef793..424c283 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -86,8 +86,6 @@ gdk_display_get_event
gdk_display_peek_event
gdk_display_put_event
gdk_display_has_pending
-gdk_display_set_double_click_time
-gdk_display_set_double_click_distance
gdk_display_is_rgba
gdk_display_is_composited
gdk_display_supports_cursor_color
diff --git a/gdk/gdk-private.h b/gdk/gdk-private.h
index 0c7ca66..179da76 100644
--- a/gdk/gdk-private.h
+++ b/gdk/gdk-private.h
@@ -41,4 +41,9 @@ GObject * gdk_event_get_user_data (const GdkEvent *event);
guint32 gdk_display_get_last_seen_time (GdkDisplay *display);
+void gdk_display_set_double_click_time (GdkDisplay *display,
+ guint msec);
+void gdk_display_set_double_click_distance (GdkDisplay *display,
+ guint distance);
+
#endif /* __GDK__PRIVATE_H__ */
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index e4a19e1..5232fe3 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -2025,17 +2025,6 @@ gdk_display_get_last_seen_time (GdkDisplay *display)
return GDK_CURRENT_TIME;
}
-/**
- * gdk_display_set_double_click_time:
- * @display: a #GdkDisplay
- * @msec: double click time in milliseconds (thousandths of a second)
- *
- * Sets the double click time (two clicks within this time interval
- * count as a double click). Applications should not set this, it is a global
- * user-configured setting.
- *
- * Since: 2.2
- **/
void
gdk_display_set_double_click_time (GdkDisplay *display,
guint msec)
@@ -2043,18 +2032,6 @@ gdk_display_set_double_click_time (GdkDisplay *display,
display->double_click_time = msec;
}
-/**
- * gdk_display_set_double_click_distance:
- * @display: a #GdkDisplay
- * @distance: distance in pixels
- *
- * Sets the double click distance (two clicks within this distance
- * count as a double click). See also gdk_display_set_double_click_time().
- * Applications should not set this, it is a global
- * user-configured setting.
- *
- * Since: 2.4
- **/
void
gdk_display_set_double_click_distance (GdkDisplay *display,
guint distance)
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h
index d8aad24..cf82ec2 100644
--- a/gdk/gdkdisplay.h
+++ b/gdk/gdkdisplay.h
@@ -78,13 +78,6 @@ GDK_AVAILABLE_IN_ALL
gboolean gdk_display_has_pending (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
-void gdk_display_set_double_click_time (GdkDisplay *display,
- guint msec);
-GDK_AVAILABLE_IN_ALL
-void gdk_display_set_double_click_distance (GdkDisplay *display,
- guint distance);
-
-GDK_AVAILABLE_IN_ALL
GdkDisplay *gdk_display_get_default (void);
GDK_AVAILABLE_IN_ALL
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index ce7de59..f0c6be9 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -34,6 +34,7 @@
#include "gtktypebuiltins.h"
#include "gtkversion.h"
#include "gtkscrolledwindow.h"
+#include "gdk/gdk-private.h"
#ifdef GDK_WINDOWING_X11
#include "x11/gdkx.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]