[nautilus/gnome-3-22] rename-file-popover-controller: Fix popover animation
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-22] rename-file-popover-controller: Fix popover animation
- Date: Fri, 9 Dec 2016 23:40:09 +0000 (UTC)
commit 54bf6bcea00b05c0725936c146e0483ecff2ce2f
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date: Thu Oct 27 23:35:05 2016 +0300
rename-file-popover-controller: Fix popover animation
The transitions for the rename popover are disabled.
To fix this, use gtk_popover_popdown and gtk_popover_popup instead of
gtk_widget_show and gtk_widget_hide.
https://bugzilla.gnome.org/show_bug.cgi?id=771614
src/nautilus-rename-file-popover-controller.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-rename-file-popover-controller.c b/src/nautilus-rename-file-popover-controller.c
index 13da62a..9d47b38 100644
--- a/src/nautilus-rename-file-popover-controller.c
+++ b/src/nautilus-rename-file-popover-controller.c
@@ -197,7 +197,7 @@ nautilus_rename_file_popover_controller_new (NautilusFile *target_file,
gtk_popover_set_pointing_to (GTK_POPOVER (rename_file_popover), pointing_to);
gtk_popover_set_relative_to (GTK_POPOVER (rename_file_popover), relative_to);
- gtk_widget_show (rename_file_popover);
+ gtk_popover_popup (GTK_POPOVER (rename_file_popover));
/* Select the name part withouth the file extension */
eel_filename_get_rename_region (nautilus_file_get_display_name (target_file),
@@ -240,7 +240,7 @@ nautilus_rename_file_popover_controller_finalize (GObject *object)
self->closed_handler_id);
self->closed_handler_id = 0;
}
- gtk_widget_hide (self->rename_file_popover);
+ gtk_popover_popdown (GTK_POPOVER (self->rename_file_popover));
self->rename_file_popover = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]