From e087aba96f5f92ee167e33a7ec1f84314ed04715 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 1 Jan 2000 20:47:45 +0000 Subject: [PATCH] r151: Improved the manual and added the refresh toolbar tool. --- ROX-Filer/src/filer.c | 9 +++++++++ ROX-Filer/src/pixmaps.c | 2 ++ ROX-Filer/src/pixmaps.h | 1 + 3 files changed, 12 insertions(+) diff --git a/ROX-Filer/src/filer.c b/ROX-Filer/src/filer.c index d7c5e938..6b084129 100644 --- a/ROX-Filer/src/filer.c +++ b/ROX-Filer/src/filer.c @@ -1034,6 +1034,12 @@ static gint key_press_event(GtkWidget *widget, return FALSE; } +static void toolbar_refresh_clicked(GtkWidget *widget, + FilerWindow *filer_window) +{ + update_dir(filer_window); +} + static void toolbar_home_clicked(GtkWidget *widget, FilerWindow *filer_window) { filer_change_to(filer_window, getenv("HOME")); @@ -1353,6 +1359,9 @@ static GtkWidget *create_toolbar(FilerWindow *filer_window) add_button(GTK_CONTAINER(box), TOOLBAR_HOME_ICON, GTK_SIGNAL_FUNC(toolbar_home_clicked), filer_window); + add_button(GTK_CONTAINER(box), TOOLBAR_REFRESH_ICON, + GTK_SIGNAL_FUNC(toolbar_refresh_clicked), + filer_window); return frame; } diff --git a/ROX-Filer/src/pixmaps.c b/ROX-Filer/src/pixmaps.c index ce96aa9d..7756ce2f 100644 --- a/ROX-Filer/src/pixmaps.c +++ b/ROX-Filer/src/pixmaps.c @@ -131,6 +131,8 @@ static void load_default_pixmaps(void) load_pixmap("pixmaps/up.xpm", default_pixmap + TOOLBAR_UP_ICON); load_pixmap("pixmaps/home.xpm", default_pixmap + TOOLBAR_HOME_ICON); + load_pixmap("pixmaps/refresh.xpm", default_pixmap + + TOOLBAR_REFRESH_ICON); } void pixmap_ref(MaskedPixmap *mp) diff --git a/ROX-Filer/src/pixmaps.h b/ROX-Filer/src/pixmaps.h index ff367ae1..e6a7a8d7 100644 --- a/ROX-Filer/src/pixmaps.h +++ b/ROX-Filer/src/pixmaps.h @@ -36,6 +36,7 @@ enum /* Toolbar */ TOOLBAR_UP_ICON, TOOLBAR_HOME_ICON, + TOOLBAR_REFRESH_ICON, /* End of list */ LAST_DEFAULT_PIXMAP -- 2.11.4.GIT