[nautilus/gnome-3-20] pathbar: avoid gtk+ warnings
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-20] pathbar: avoid gtk+ warnings
- Date: Wed, 23 Mar 2016 08:33:40 +0000 (UTC)
commit b6be37710e235aca9d15af8e74a3d503c0a61ff9
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Mar 21 22:23:37 2016 +0100
pathbar: avoid gtk+ warnings
If we don't request the slider preferred size in allocation, gtk+
triggers a warning.
The code of the path bar shouldn't do what is doing, and now gtk+ warns
about it. In order to fix it, request the preferred size in size_allocate.
src/nautilus-pathbar.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 133c3dd..d59b322 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -642,6 +642,9 @@ nautilus_path_bar_size_allocate (GtkWidget *widget,
return;
}
direction = gtk_widget_get_direction (widget);
+ gtk_widget_get_preferred_width (path_bar->priv->up_slider_button,
+ &path_bar->priv->slider_width,
+ NULL);
/* First, we check to see if we need the scrollbars. */
width = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]