summaryrefslogtreecommitdiff
path: root/src/caja-pathbar.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-07-06 18:14:43 -0400
committerlukefromdc <[email protected]>2018-07-11 19:20:53 -0400
commit162015e9f3158d4c579c7c2ed3faf61f31e9bb83 (patch)
tree1b0c64da6a46df9a423c2d6ccc4c9db2f10b6de6 /src/caja-pathbar.c
parent191aa3992171c84134f0359a960e5bebc7bfeca4 (diff)
downloadcaja-162015e9f3158d4c579c7c2ed3faf61f31e9bb83.tar.bz2
caja-162015e9f3158d4c579c7c2ed3faf61f31e9bb83.tar.xz
pathbar: Fix crash when accessing drive root
Apply github.com/GNOME/nautilus/commit/e759e82386f80fb214a420b789b07a194480462c pathbar: Fix crash when accessing drive root The path bar button data is not properly set up when type button type is “root”.
Diffstat (limited to 'src/caja-pathbar.c')
-rw-r--r--src/caja-pathbar.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c
index 7e2b294a..27427aca 100644
--- a/src/caja-pathbar.c
+++ b/src/caja-pathbar.c
@@ -1901,12 +1901,13 @@ make_directory_button (CajaPathBar *path_bar,
switch (button_data->type)
{
case ROOT_BUTTON:
- child = button_data->image;
- button_data->label = NULL;
- break;
+ /* Fall through */
case HOME_BUTTON:
+ /* Fall through */
case DESKTOP_BUTTON:
+ /* Fall through */
case MOUNT_BUTTON:
+ /* Fall through */
case DEFAULT_LOCATION_BUTTON:
button_data->label = gtk_label_new (NULL);
child = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);