Commit 49be7176 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

Only change the double click time if the screen for the notification is

Thu Jun 20 14:51:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtksettings.c (gtk_settings_notify): Only
        change the double click time if the screen for
        the notification is screen 0 of the display.
        (#77978)

        * gdk/gdkevents.c (gdk_display_set_double_click_time): Fix
        half-done rename.
parent 3bbc2ee8
......@@ -987,8 +987,8 @@ gdk_synthesize_window_state (GdkWindow *window,
* Applications should NOT set this, it is a global user-configured setting.
**/
void
gdk_set_double_click_time_for_display (GdkDisplay *display,
guint msec)
gdk_display_set_double_click_time (GdkDisplay *display,
guint msec)
{
display->double_click_time = msec;
}
......@@ -1004,7 +1004,7 @@ gdk_set_double_click_time_for_display (GdkDisplay *display,
void
gdk_set_double_click_time (guint msec)
{
gdk_set_double_click_time_for_display (gdk_get_default_display (), msec);
gdk_display_set_double_click_time (gdk_get_default_display (), msec);
}
GType
......
......@@ -367,9 +367,15 @@ gtk_settings_notify (GObject *object,
switch (property_id)
{
case PROP_DOUBLE_CLICK_TIME:
g_object_get (object, pspec->name, &double_click_time, NULL);
gdk_set_double_click_time (double_click_time);
break;
{
GdkDisplay *display;
g_object_get (object, pspec->name, &double_click_time, NULL);
display = gdk_screen_get_display (settings->screen);
if (settings->screen == gdk_display_get_screen (display, 0))
gdk_display_set_double_click_time (display, double_click_time);
break;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment