mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Toys + fixes from Ronald.
1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx> * gprefs.c: Add new page for desktop properties. 1999-04-05 Ronald de Man <deman@win.tue.nl> * gnome-file-property-dialog.c (create_general_properties): Use local time here. 1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx> * setup.c: Save desktop information.
This commit is contained in:
parent
8ca4c59e39
commit
4ee4ff8680
@ -1,3 +1,12 @@
|
||||
1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gprefs.c: Add new page for desktop properties.
|
||||
|
||||
1999-04-05 Ronald de Man <deman@win.tue.nl>
|
||||
|
||||
* gnome-file-property-dialog.c (create_general_properties): Use
|
||||
local time here.
|
||||
|
||||
1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gcorba.c: #include "../vfs/vfs.h"
|
||||
|
@ -267,7 +267,7 @@ create_general_properties (GnomeFilePropertyDialog *fp_dlg)
|
||||
label = gtk_label_new (_("File Created on: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, 0, 1);
|
||||
time = gmtime (&(fp_dlg->st.st_ctime));
|
||||
time = localtime (&(fp_dlg->st.st_ctime));
|
||||
strftime (buf, MC_MAXPATHLEN, "%a, %b %d %Y, %I:%M:%S %p", time);
|
||||
label = gtk_label_new (buf);
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
@ -276,7 +276,7 @@ create_general_properties (GnomeFilePropertyDialog *fp_dlg)
|
||||
label = gtk_label_new (_("Last Modified on: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, 1, 2);
|
||||
time = gmtime (&(fp_dlg->st.st_mtime));
|
||||
time = localtime (&(fp_dlg->st.st_mtime));
|
||||
strftime (buf, MC_MAXPATHLEN, "%a, %b %d %Y, %I:%M:%S %p", time);
|
||||
label = gtk_label_new (buf);
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
@ -285,7 +285,7 @@ create_general_properties (GnomeFilePropertyDialog *fp_dlg)
|
||||
label = gtk_label_new (_("Last Accessed on: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, 2, 3);
|
||||
time = gmtime (&(fp_dlg->st.st_atime));
|
||||
time = localtime (&(fp_dlg->st.st_atime));
|
||||
strftime (buf, MC_MAXPATHLEN, "%a, %b %d %Y, %I:%M:%S %p", time);
|
||||
label = gtk_label_new (buf);
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
|
@ -1,3 +1,9 @@
|
||||
/*
|
||||
* Preferences configuration page for the GNU Midnight Commander
|
||||
*
|
||||
* Author:
|
||||
* Jonathan Blandford (jrb@redhat.com)
|
||||
*/
|
||||
#include <config.h>
|
||||
#include "x.h"
|
||||
#include <stdio.h>
|
||||
@ -17,6 +23,7 @@
|
||||
#include "gcustom-layout.h"
|
||||
#include "../vfs/vfs.h"
|
||||
#include "gprefs.h"
|
||||
#include "gdesktop.h"
|
||||
|
||||
/* Orphan confirmation options */
|
||||
/* Auto save setup */
|
||||
@ -155,6 +162,22 @@ static Property caching_and_optimization_props [] =
|
||||
PROPERTIES_DONE
|
||||
};
|
||||
|
||||
static Property desktop_props [] = {
|
||||
{
|
||||
N_("Use shaped icons"), PROPERTY_BOOL,
|
||||
&desktop_use_shaped_icons, NULL, NULL, NULL
|
||||
},
|
||||
{
|
||||
N_("Auto place icons"), PROPERTY_BOOL,
|
||||
&desktop_auto_placement, NULL, NULL, NULL
|
||||
},
|
||||
{
|
||||
N_("Snap icons to grid"), PROPERTY_BOOL,
|
||||
&desktop_snap_icons, NULL, NULL, NULL
|
||||
},
|
||||
PROPERTIES_DONE
|
||||
};
|
||||
|
||||
static PrefsPage prefs_pages [] =
|
||||
{
|
||||
{
|
||||
@ -173,6 +196,10 @@ static PrefsPage prefs_pages [] =
|
||||
N_("Caching"),
|
||||
caching_and_optimization_props
|
||||
},
|
||||
{
|
||||
N_("Desktop"),
|
||||
desktop_props
|
||||
},
|
||||
PREFSPAGES_DONE
|
||||
};
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
1999-04-05 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* setup.c: Save desktop information.
|
||||
|
||||
1999-04-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* cons.saver.c (main): dup2() may be interrupted; take this into
|
||||
|
@ -253,6 +253,9 @@ static struct {
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GNOME
|
||||
{ "desktop_use_shaped_icons", &desktop_use_shaped_icons },
|
||||
{ "desktop_auto_placement", &desktop_auto_placement },
|
||||
{ "desktop_snap_icons", &desktop_snap_icons },
|
||||
{ "tree_panel_visible", &tree_panel_visible },
|
||||
{ "we_can_afford_the_speed", &we_can_afford_the_speed },
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user