[nautilus/wip/gbsneto/view-menu] toolbar: fixed insensitive menu
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gbsneto/view-menu] toolbar: fixed insensitive menu
- Date: Fri, 14 Aug 2015 12:15:17 +0000 (UTC)
commit 264aca677b46e8310a55dfd0a5b00ce2bfca97be
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Aug 14 09:14:02 2015 -0300
toolbar: fixed insensitive menu
Seems like the transform function wasn't clearing
correctly the popover.
To fix that, clear the previous popover before setting
the new one.
src/nautilus-toolbar.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index c7c18a0..6b40696 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -858,6 +858,7 @@ nautilus_toolbar_view_widget_transform_to (GBinding *binding,
view_widget = g_value_get_object (from_value);
gtk_widget_set_sensitive (toolbar->priv->view_button, view_widget != NULL);
+ gtk_menu_button_set_popover (GTK_MENU_BUTTON (toolbar->priv->view_button), NULL);
if (view_widget) {
if (!GTK_IS_POPOVER (view_widget)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]