[nautilus] files-view: remove source for rename popover label timeout
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: remove source for rename popover label timeout
- Date: Fri, 4 Sep 2015 21:04:45 +0000 (UTC)
commit 8754395da6d3454f0f29149627e661c7a93fd19c
Author: Carlos Soriano <csoriano gnome org>
Date: Fri Sep 4 21:22:23 2015 +0200
files-view: remove source for rename popover label timeout
If not, if we close the popover while the timeout is going,
we crash.
src/nautilus-files-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 648b8ec..65c10ef 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -2032,6 +2032,10 @@ rename_file_popover_on_closed (GtkPopover *popover,
widget_data = (FileNameWidgetData *) user_data;
widget_data->view->details->rename_file_popover = NULL;
+ if (widget_data->view->details->duplicated_label_timeout_id > 0) {
+ g_source_remove (widget_data->view->details->duplicated_label_timeout_id);
+ widget_data->view->details->duplicated_label_timeout_id = 0;
+ }
g_free (widget_data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]