ri 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.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
||||
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>
|
||||
|
||||
* modules/input/Makefile.am: Patch from J. Ali Harlow
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
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>
|
||||
|
||||
* modules/input/Makefile.am: Patch from J. Ali Harlow
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
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>
|
||||
|
||||
* modules/input/Makefile.am: Patch from J. Ali Harlow
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
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>
|
||||
|
||||
* modules/input/Makefile.am: Patch from J. Ali Harlow
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
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>
|
||||
|
||||
* modules/input/Makefile.am: Patch from J. Ali Harlow
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
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>
|
||||
|
||||
* modules/input/Makefile.am: Patch from J. Ali Harlow
|
||||
|
||||
@@ -69,6 +69,9 @@
|
||||
#else
|
||||
#define GTK_SELECTION_MAX_SIZE 4000
|
||||
#endif
|
||||
|
||||
#define IDLE_ABORT_TIME 300
|
||||
|
||||
enum {
|
||||
INCR,
|
||||
MULTIPLE,
|
||||
@@ -642,6 +645,7 @@ gtk_selection_convert (GtkWidget *widget,
|
||||
info->widget = widget;
|
||||
info->selection = selection;
|
||||
info->target = target;
|
||||
info->idle_time = 0;
|
||||
info->buffer = NULL;
|
||||
info->offset = -1;
|
||||
|
||||
@@ -1358,9 +1362,9 @@ gtk_selection_incr_timeout (GtkIncrInfo *info)
|
||||
}
|
||||
|
||||
/* 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);
|
||||
g_list_free (tmp_list);
|
||||
@@ -1608,9 +1612,9 @@ gtk_selection_retrieval_timeout (GtkRetrievalInfo *info)
|
||||
}
|
||||
|
||||
/* 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);
|
||||
g_list_free (tmp_list);
|
||||
|
||||
Reference in New Issue
Block a user