1999-01-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gprefs.c (apply_callback): Update the directory contents after the settings have changed.
Этот коммит содержится в:
родитель
6cc4269beb
Коммит
cc1590b9d1
@ -1,3 +1,8 @@
|
|||||||
|
1999-01-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* gprefs.c (apply_callback): Update the directory contents after
|
||||||
|
the settings have changed.
|
||||||
|
|
||||||
1999-01-19 Jonathan Blandford <jrb@redhat.com>
|
1999-01-19 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gdialogs.c (file_op_context_create_ui): OP_DELETE now has it's
|
* gdialogs.c (file_op_context_create_ui): OP_DELETE now has it's
|
||||||
|
@ -71,6 +71,24 @@ typedef struct
|
|||||||
typedef GtkWidget* (*CustomCreateFunc) (PrefsDlg *dlg, Property *prop);
|
typedef GtkWidget* (*CustomCreateFunc) (PrefsDlg *dlg, Property *prop);
|
||||||
typedef void (*CustomApplyFunc) (PrefsDlg *dlg, Property *prop);
|
typedef void (*CustomApplyFunc) (PrefsDlg *dlg, Property *prop);
|
||||||
|
|
||||||
|
static void
|
||||||
|
gnome_toggle_show_backup (void)
|
||||||
|
{
|
||||||
|
show_backups = !show_backups;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gnome_toggle_show_hidden (void)
|
||||||
|
{
|
||||||
|
show_dot_files = !show_dot_files;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
toggle_mix_all_files (void)
|
||||||
|
{
|
||||||
|
mix_all_files = !mix_all_files;
|
||||||
|
}
|
||||||
|
|
||||||
static Property file_display_props [] =
|
static Property file_display_props [] =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
@ -254,6 +272,10 @@ apply_callback (GtkWidget *prop_box, gint pagenum, PrefsDlg *dlg)
|
|||||||
if (pagenum != -1) {
|
if (pagenum != -1) {
|
||||||
apply_page_changes (dlg, pagenum);
|
apply_page_changes (dlg, pagenum);
|
||||||
} else {
|
} else {
|
||||||
|
/* FIXME: can be optimized. Only if some of the
|
||||||
|
* boolean flags changed this makes sense
|
||||||
|
*/
|
||||||
|
update_panels (UP_RELOAD, UP_KEEPSEL);
|
||||||
save_setup ();
|
save_setup ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -373,6 +395,9 @@ create_prop_custom (PrefsDlg *dlg, Property *prop)
|
|||||||
{
|
{
|
||||||
CustomCreateFunc create = (CustomCreateFunc) prop->extra_data1;
|
CustomCreateFunc create = (CustomCreateFunc) prop->extra_data1;
|
||||||
|
|
||||||
|
if (!create)
|
||||||
|
return create_prop_bool (dlg, prop);
|
||||||
|
|
||||||
return create (dlg, prop);
|
return create (dlg, prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user