1
1

1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gscreen.c (toolbar): Added a "rescan" button.
Этот коммит содержится в:
Miguel de Icaza 1999-02-15 20:34:07 +00:00
родитель 573cf10675
Коммит 79340b3015
2 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -1,5 +1,7 @@
1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx> 1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (toolbar): Added a "rescan" button.
* gprefs.c (create_prop_box): Make the preferences dialog modal. * gprefs.c (create_prop_box): Make the preferences dialog modal.
Also, set the window title and set the window's parent. Also, set the window title and set the window's parent.
Removed some unused functions. Removed some unused functions.

Просмотреть файл

@ -2334,11 +2334,20 @@ do_switch_to_custom_listing (GtkWidget *widget, WPanel *panel)
panel_update_contents (panel); panel_update_contents (panel);
} }
static void
rescan_panel (GtkWidget *widget, gpointer data)
{
reread_cmd ();
}
static void static void
go_home (GtkWidget *widget, WPanel *panel) go_home (GtkWidget *widget, WPanel *panel)
{ {
do_panel_cd (panel, "~", cd_exact); do_panel_cd (panel, "~", cd_exact);
} }
/* View mode radio buttons for toolbar */
static GnomeUIInfo viewbar[] = { static GnomeUIInfo viewbar[] = {
{ GNOME_APP_UI_ITEM, N_("Icon"), N_("Switch view to an Icon view"), do_switch_to_iconic, NULL, NULL, \ { GNOME_APP_UI_ITEM, N_("Icon"), N_("Switch view to an Icon view"), do_switch_to_iconic, NULL, NULL, \
GNOME_APP_PIXMAP_DATA, listing_iconic_xpm, 0, (GdkModifierType) 0, NULL }, GNOME_APP_PIXMAP_DATA, listing_iconic_xpm, 0, (GdkModifierType) 0, NULL },
@ -2350,6 +2359,9 @@ static GnomeUIInfo viewbar[] = {
GNOME_APP_PIXMAP_DATA, listing_custom_xpm, 0, (GdkModifierType) 0, NULL }, GNOME_APP_PIXMAP_DATA, listing_custom_xpm, 0, (GdkModifierType) 0, NULL },
GNOMEUIINFO_END GNOMEUIINFO_END
}; };
/* The toolbar */
static GnomeUIInfo toolbar[] = { static GnomeUIInfo toolbar[] = {
GNOMEUIINFO_ITEM_STOCK (N_("Back"), N_("Go to the previously visited directory"), GNOMEUIINFO_ITEM_STOCK (N_("Back"), N_("Go to the previously visited directory"),
panel_back, GNOME_STOCK_PIXMAP_BACK), panel_back, GNOME_STOCK_PIXMAP_BACK),
@ -2358,6 +2370,9 @@ static GnomeUIInfo toolbar[] = {
GNOMEUIINFO_ITEM_STOCK (N_("Forward"), N_("Go to the next directory"), GNOMEUIINFO_ITEM_STOCK (N_("Forward"), N_("Go to the next directory"),
panel_fwd, GNOME_STOCK_PIXMAP_FORWARD), panel_fwd, GNOME_STOCK_PIXMAP_FORWARD),
GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_SEPARATOR,
GNOMEUIINFO_ITEM_STOCK (N_("Rescan"), N_("Rescan the current directory"),
rescan_panel, GNOME_STOCK_PIXMAP_REFRESH),
GNOMEUIINFO_SEPARATOR,
GNOMEUIINFO_ITEM_STOCK (N_("Home"), N_("Go to your home directory"), GNOMEUIINFO_ITEM_STOCK (N_("Home"), N_("Go to your home directory"),
go_home, GNOME_STOCK_PIXMAP_HOME), go_home, GNOME_STOCK_PIXMAP_HOME),
GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_SEPARATOR,