Commit e369df6b authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

(#91249, Thomas Leonard)

Fri Sep 27 18:14:00 2002  Owen Taylor  <otaylor@redhat.com>
        (#91249, Thomas Leonard)

        * gtk/gtkselection.c (gtk_selection_convert): Initialize
        idle time to 0.

        * gtk/gtkselection.c: Up idle timeout to 5 minutes
        from 5 seconds.
parent 27180abb
Fri Sep 27 18:14:00 2002 Owen Taylor <otaylor@redhat.com>
(#91249, Thomas Leonard)
* gtk/gtkselection.c (gtk_selection_convert): Initialize
idle time to 0.
* gtk/gtkselection.c: Up idle timeout to 5 minutes
from 5 seconds.
Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com> Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/Makefile.am: Patch from J. Ali Harlow * modules/input/Makefile.am: Patch from J. Ali Harlow
......
Fri Sep 27 18:14:00 2002 Owen Taylor <otaylor@redhat.com>
(#91249, Thomas Leonard)
* gtk/gtkselection.c (gtk_selection_convert): Initialize
idle time to 0.
* gtk/gtkselection.c: Up idle timeout to 5 minutes
from 5 seconds.
Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com> Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/Makefile.am: Patch from J. Ali Harlow * modules/input/Makefile.am: Patch from J. Ali Harlow
......
Fri Sep 27 18:14:00 2002 Owen Taylor <otaylor@redhat.com>
(#91249, Thomas Leonard)
* gtk/gtkselection.c (gtk_selection_convert): Initialize
idle time to 0.
* gtk/gtkselection.c: Up idle timeout to 5 minutes
from 5 seconds.
Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com> Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/Makefile.am: Patch from J. Ali Harlow * modules/input/Makefile.am: Patch from J. Ali Harlow
......
Fri Sep 27 18:14:00 2002 Owen Taylor <otaylor@redhat.com>
(#91249, Thomas Leonard)
* gtk/gtkselection.c (gtk_selection_convert): Initialize
idle time to 0.
* gtk/gtkselection.c: Up idle timeout to 5 minutes
from 5 seconds.
Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com> Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/Makefile.am: Patch from J. Ali Harlow * modules/input/Makefile.am: Patch from J. Ali Harlow
......
Fri Sep 27 18:14:00 2002 Owen Taylor <otaylor@redhat.com>
(#91249, Thomas Leonard)
* gtk/gtkselection.c (gtk_selection_convert): Initialize
idle time to 0.
* gtk/gtkselection.c: Up idle timeout to 5 minutes
from 5 seconds.
Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com> Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/Makefile.am: Patch from J. Ali Harlow * modules/input/Makefile.am: Patch from J. Ali Harlow
......
Fri Sep 27 18:14:00 2002 Owen Taylor <otaylor@redhat.com>
(#91249, Thomas Leonard)
* gtk/gtkselection.c (gtk_selection_convert): Initialize
idle time to 0.
* gtk/gtkselection.c: Up idle timeout to 5 minutes
from 5 seconds.
Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com> Fri Sep 27 17:40:47 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/Makefile.am: Patch from J. Ali Harlow * modules/input/Makefile.am: Patch from J. Ali Harlow
......
...@@ -69,6 +69,9 @@ ...@@ -69,6 +69,9 @@
#else #else
#define GTK_SELECTION_MAX_SIZE 4000 #define GTK_SELECTION_MAX_SIZE 4000
#endif #endif
#define IDLE_ABORT_TIME 300
enum { enum {
INCR, INCR,
MULTIPLE, MULTIPLE,
...@@ -684,6 +687,7 @@ gtk_selection_convert (GtkWidget *widget, ...@@ -684,6 +687,7 @@ gtk_selection_convert (GtkWidget *widget,
info->widget = widget; info->widget = widget;
info->selection = selection; info->selection = selection;
info->target = target; info->target = target;
info->idle_time = 0;
info->buffer = NULL; info->buffer = NULL;
info->offset = -1; info->offset = -1;
...@@ -1426,9 +1430,9 @@ gtk_selection_incr_timeout (GtkIncrInfo *info) ...@@ -1426,9 +1430,9 @@ gtk_selection_incr_timeout (GtkIncrInfo *info)
} }
/* If retrieval is finished */ /* If retrieval is finished */
if (!tmp_list || info->idle_time >= 5) if (!tmp_list || info->idle_time >= IDLE_ABORT_TIME)
{ {
if (tmp_list && info->idle_time >= 5) if (tmp_list && info->idle_time >= IDLE_ABORT_TIME)
{ {
current_incrs = g_list_remove_link (current_incrs, tmp_list); current_incrs = g_list_remove_link (current_incrs, tmp_list);
g_list_free (tmp_list); g_list_free (tmp_list);
...@@ -1676,9 +1680,9 @@ gtk_selection_retrieval_timeout (GtkRetrievalInfo *info) ...@@ -1676,9 +1680,9 @@ gtk_selection_retrieval_timeout (GtkRetrievalInfo *info)
} }
/* If retrieval is finished */ /* If retrieval is finished */
if (!tmp_list || info->idle_time >= 5) if (!tmp_list || info->idle_time >= IDLE_ABORT_TIME)
{ {
if (tmp_list && info->idle_time >= 5) if (tmp_list && info->idle_time >= IDLE_ABORT_TIME)
{ {
current_retrievals = g_list_remove_link (current_retrievals, tmp_list); current_retrievals = g_list_remove_link (current_retrievals, tmp_list);
g_list_free (tmp_list); g_list_free (tmp_list);
......
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