diff options
author | Carlos Soriano <csoriano@gnome.org> | 2018-04-05 12:57:59 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2018-04-05 12:57:59 +0200 |
commit | ca523f91c58bd350ef05bf8d738900a98633ee3b (patch) | |
tree | e543c205182192d5d6bd152c9d0413d2ebd15984 /src | |
parent | df6324b696ba797521a04f6a577cd3700cd859ed (diff) | |
download | nautilus-ca523f91c58bd350ef05bf8d738900a98633ee3b.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-pathbar.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |