[nautilus/origin/wip/desktop-split-nofonclicts: 22/26] toolbar: use gtk_widget_is_visible for robustness
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/origin/wip/desktop-split-nofonclicts: 22/26] toolbar: use gtk_widget_is_visible for robustness
- Date: Tue, 12 Apr 2016 14:29:06 +0000 (UTC)
commit e7f9c0f87b34d4f678c85346c557261cb73170e3
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Apr 12 16:17:02 2016 +0200
toolbar: use gtk_widget_is_visible for robustness
It checks the parents visibility as well.
src/nautilus-toolbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index 657a308..d36b56c 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -603,7 +603,7 @@ update_operations (NautilusToolbar *self)
* Check whether the toolbar is visible or not before showing the
* popover. This can happens if the window has the disables-chrome
* property set. */
- if (gtk_widget_get_visible (GTK_WIDGET (self))) {
+ if (gtk_widget_is_visible (GTK_WIDGET (self))) {
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->priv->operations_button),
TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]