[nautilus] path-bar: Get the appropriate parent
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] path-bar: Get the appropriate parent
- Date: Thu, 5 Apr 2018 11:09:18 +0000 (UTC)
commit ca523f91c58bd350ef05bf8d738900a98633ee3b
Author: Carlos Soriano <csoriano gnome org>
Date: Thu Apr 5 12:57:59 2018 +0200
path-bar: Get the appropriate parent
Forgot to change one of the get_parent calls in c0198eca65ad.
In any case, this is really bad... we should use some g_object_set
I guess.
src/nautilus-pathbar.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 1c4ab759a..30cd15735 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -1609,6 +1609,7 @@ button_clicked_cb (GtkWidget *button,
return;
}
+ /* FIXME: This get_parent play is... whatever */
self = NAUTILUS_PATH_BAR (gtk_widget_get_parent (gtk_widget_get_parent (button)));
priv = nautilus_path_bar_get_instance_private (self);
@@ -1731,7 +1732,8 @@ button_event_cb (GtkWidget *button,
int mask;
button_data = BUTTON_DATA (data);
- self = NAUTILUS_PATH_BAR (gtk_widget_get_parent (button));
+ /* FIXME: This get_parent play is... whatever */
+ self = NAUTILUS_PATH_BAR (gtk_widget_get_parent (gtk_widget_get_parent (button)));
mask = event->state & gtk_accelerator_get_default_mod_mask ();
if (event->type == GDK_BUTTON_PRESS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]