1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* glayout.c (save_panel_types): Do not save the setup of a desktop panel. * gpopup2.c (handle_mount): Use get_full_filename(). (handle_unmount): Likewise. (handle_eject): Likewise. (handle_open): Likewise.
Этот коммит содержится в:
родитель
0bd0f7dac2
Коммит
9be5d13eb3
@ -1,5 +1,13 @@
|
|||||||
1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
1999-03-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* glayout.c (save_panel_types): Do not save the setup of a desktop
|
||||||
|
panel.
|
||||||
|
|
||||||
|
* gpopup2.c (handle_mount): Use get_full_filename().
|
||||||
|
(handle_unmount): Likewise.
|
||||||
|
(handle_eject): Likewise.
|
||||||
|
(handle_open): Likewise.
|
||||||
|
|
||||||
* gdesktop.c (update_url): Made static.
|
* gdesktop.c (update_url): Made static.
|
||||||
(desktop_reload_icons): Call update_url() when updating an
|
(desktop_reload_icons): Call update_url() when updating an
|
||||||
existing icon.
|
existing icon.
|
||||||
|
@ -253,7 +253,8 @@ save_panel_types (void)
|
|||||||
for (p = containers; p; p = p->next){
|
for (p = containers; p; p = p->next){
|
||||||
PanelContainer *pc = p->data;
|
PanelContainer *pc = p->data;
|
||||||
|
|
||||||
panel_save_setup (pc->panel, pc->panel->panel_name);
|
if (!is_a_desktop_panel (pc->panel))
|
||||||
|
panel_save_setup (pc->panel, pc->panel->panel_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -330,7 +330,6 @@ setup_devices (void)
|
|||||||
gboolean release_format;
|
gboolean release_format;
|
||||||
gboolean ejectable;
|
gboolean ejectable;
|
||||||
|
|
||||||
|
|
||||||
dev_name = dit->devname;
|
dev_name = dit->devname;
|
||||||
short_dev_name = x_basename (dev_name);
|
short_dev_name = x_basename (dev_name);
|
||||||
|
|
||||||
|
@ -568,14 +568,16 @@ handle_open (GtkWidget *widget, WPanel *panel)
|
|||||||
gchar *full_name;
|
gchar *full_name;
|
||||||
DesktopIconInfo *dii;
|
DesktopIconInfo *dii;
|
||||||
|
|
||||||
|
full_name = get_full_filename (panel);
|
||||||
|
|
||||||
if (is_a_desktop_panel (panel)) {
|
if (is_a_desktop_panel (panel)) {
|
||||||
dii = desktop_icon_info_get_by_filename (selection (panel)->fname);
|
dii = desktop_icon_info_get_by_filename (x_basename (full_name));
|
||||||
g_assert (dii != NULL);
|
g_assert (dii != NULL);
|
||||||
|
g_free (full_name);
|
||||||
desktop_icon_info_open (dii);
|
desktop_icon_info_open (dii);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
full_name = get_full_filename (panel);
|
|
||||||
if (gmc_open_filename (full_name, 0))
|
if (gmc_open_filename (full_name, 0))
|
||||||
return;
|
return;
|
||||||
gmc_open_with (full_name);
|
gmc_open_with (full_name);
|
||||||
@ -589,7 +591,7 @@ handle_mount (GtkWidget *widget, WPanel *panel)
|
|||||||
|
|
||||||
g_assert (is_a_desktop_panel (panel));
|
g_assert (is_a_desktop_panel (panel));
|
||||||
|
|
||||||
full_name = g_concat_dir_and_file (desktop_directory, selection (panel)->fname);
|
full_name = get_full_filename (panel);
|
||||||
do_mount_umount (full_name, TRUE);
|
do_mount_umount (full_name, TRUE);
|
||||||
g_free (full_name);
|
g_free (full_name);
|
||||||
}
|
}
|
||||||
@ -601,7 +603,7 @@ handle_unmount (GtkWidget *widget, WPanel *panel)
|
|||||||
|
|
||||||
g_assert (is_a_desktop_panel (panel));
|
g_assert (is_a_desktop_panel (panel));
|
||||||
|
|
||||||
full_name = g_concat_dir_and_file (desktop_directory, selection (panel)->fname);
|
full_name = get_full_filename (panel);
|
||||||
do_mount_umount (full_name, FALSE);
|
do_mount_umount (full_name, FALSE);
|
||||||
g_free (full_name);
|
g_free (full_name);
|
||||||
}
|
}
|
||||||
@ -613,7 +615,7 @@ handle_eject (GtkWidget *widget, WPanel *panel)
|
|||||||
|
|
||||||
g_assert (is_a_desktop_panel (panel));
|
g_assert (is_a_desktop_panel (panel));
|
||||||
|
|
||||||
full_name = g_concat_dir_and_file (desktop_directory, selection (panel)->fname);
|
full_name = get_full_filename (panel);
|
||||||
do_mount_umount (full_name, FALSE);
|
do_mount_umount (full_name, FALSE);
|
||||||
do_eject (full_name);
|
do_eject (full_name);
|
||||||
g_free (full_name);
|
g_free (full_name);
|
||||||
@ -672,7 +674,6 @@ handle_properties (GtkWidget *widget, WPanel *panel)
|
|||||||
gint retval = 0;
|
gint retval = 0;
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
gchar *full_name = NULL;
|
gchar *full_name = NULL;
|
||||||
DesktopIconInfo *dii;
|
|
||||||
|
|
||||||
full_name = get_full_filename (panel);
|
full_name = get_full_filename (panel);
|
||||||
dialog = gnome_file_property_dialog_new (full_name,
|
dialog = gnome_file_property_dialog_new (full_name,
|
||||||
|
857
po/mc.pot
857
po/mc.pot
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче
Block a user