1
1

1999-06-07 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gdesktop.c (new_terminal): New function to open a terminal from
	the popup menu.  If the user opens a terminal from the desktop,
	then its cwd should be the user's home directory, not the desktop
	directory.  Fixes bug #2868 in the Red Hat bugzilla.
Этот коммит содержится в:
Miguel de Icaza 1999-06-07 22:14:55 +00:00
родитель 81e3cbbd95
Коммит 2030141d95
2 изменённых файлов: 22 добавлений и 1 удалений

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

@ -1,3 +1,10 @@
1999-06-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (new_terminal): New function to open a terminal from
the popup menu. If the user opens a terminal from the desktop,
then its cwd should be the user's home directory, not the desktop
directory. Fixes bug #2868 in the Red Hat bugzilla.
1999-06-04 Robert Brady <rwb197@ecs.soton.ac.uk>
* gscreen.c (panel_list_configure_contents): Prevent

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

@ -2403,8 +2403,22 @@ set_background_image (GtkWidget *widget, gpointer data)
gnome_dialog_run (GNOME_DIALOG (msg_box));
}
}
/* Callback from menus to create a terminal. If the user creates a terminal
* from the desktop, he usually wants the cwd to be his home directory, not the
* desktop directory.
*/
static void
new_terminal (GtkWidget *widget, gpointer data)
{
if (is_a_desktop_panel (cpanel))
mc_chdir (home_dir);
gnome_open_terminal ();
}
static GnomeUIInfo gnome_panel_new_menu [] = {
GNOMEUIINFO_ITEM_NONE(N_("_Terminal"), N_("Launch a new terminal in the current directory"), gnome_open_terminal),
GNOMEUIINFO_ITEM_NONE(N_("_Terminal"), N_("Launch a new terminal in the current directory"), new_terminal),
/* If this ever changes, make sure you update create_new_menu accordingly. */
GNOMEUIINFO_ITEM_NONE( N_("_Directory..."), N_("Creates a new directory"), gnome_mkdir_cmd ),
GNOMEUIINFO_ITEM_NONE( N_("URL L_ink..."), N_("Creates a new URL link"), gnome_new_link ),