[gthumb] use get_mapped instead of get_visible to determine if a widget is visible



commit 77f50257cb217bf892f635e3772c4e288af2485a
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Jul 10 22:39:44 2011 +0200

    use get_mapped instead of get_visible to determine if a widget is visible

 extensions/image_viewer/gth-image-viewer-page.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index e22373d..8f811bb 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -1559,7 +1559,7 @@ add_non_content_width (GthImageViewerPage *self,
 {
 	int width = 0;
 
-	if ((non_content != NULL) && gtk_widget_get_visible (non_content)) {
+	if ((non_content != NULL) && gtk_widget_get_mapped (non_content)) {
 		GtkAllocation allocation;
 
 		gtk_widget_get_allocation (non_content, &allocation);
@@ -1576,7 +1576,7 @@ add_non_content_height (GthImageViewerPage *self,
 {
 	int height = 0;
 
-	if ((non_content != NULL) && gtk_widget_get_visible (non_content)) {
+	if ((non_content != NULL) && gtk_widget_get_mapped (non_content)) {
 		GtkAllocation allocation;
 
 		gtk_widget_get_allocation (non_content, &allocation);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]