[nautilus/gnome-3-20] files-view: use gtk_popover_pop{up, down} for rename popover
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-20] files-view: use gtk_popover_pop{up, down} for rename popover
- Date: Wed, 23 Nov 2016 19:59:57 +0000 (UTC)
commit d3ff53d9fa5b4300c30e9c95ed48507052f43e38
Author: Ernestas Kulik <ernestask src gnome org>
Date: Mon Nov 7 19:25:07 2016 +0200
files-view: use gtk_popover_pop{up,down} for rename popover
Popover transitions are not used for the rename popover.
https://bugzilla.gnome.org/show_bug.cgi?id=771614
src/nautilus-files-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index dd28b4f..7942e8d 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -1951,7 +1951,7 @@ rename_file_on_name_accepted (gpointer user_data)
nautilus_rename_file (data->target_file, name, NULL, NULL);
- gtk_widget_hide (data->widget);
+ gtk_popover_popdown (GTK_POPOVER (data->widget));
g_free (name);
}
@@ -2116,7 +2116,7 @@ nautilus_files_view_rename_file_popover_new (NautilusFilesView *view,
gtk_popover_set_pointing_to (GTK_POPOVER (widget_data->widget), relative_to);
gtk_popover_set_relative_to (GTK_POPOVER (widget_data->widget),
GTK_WIDGET (view));
- gtk_widget_show (widget_data->widget);
+ gtk_popover_popup (GTK_POPOVER (widget_data->widget));
gtk_widget_grab_focus (widget_data->name_entry);
/* Select the name part withouth the file extension */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]