Commit 77f50257 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

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

parent 4c01720b
...@@ -1559,7 +1559,7 @@ add_non_content_width (GthImageViewerPage *self, ...@@ -1559,7 +1559,7 @@ add_non_content_width (GthImageViewerPage *self,
{ {
int width = 0; 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; GtkAllocation allocation;
gtk_widget_get_allocation (non_content, &allocation); gtk_widget_get_allocation (non_content, &allocation);
...@@ -1576,7 +1576,7 @@ add_non_content_height (GthImageViewerPage *self, ...@@ -1576,7 +1576,7 @@ add_non_content_height (GthImageViewerPage *self,
{ {
int height = 0; 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; GtkAllocation allocation;
gtk_widget_get_allocation (non_content, &allocation); gtk_widget_get_allocation (non_content, &allocation);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment