[patch] for gmc



Here are two tiny patches for gmc.

The first patch causes the Properties of a file to display the
Creation/Modification/Access time in local time, as opposed to GMT.

The second patch gets rid of the modality of the Preferences window.
Reasons:
1. There is no need for the Preferences window to be modal (I think).
2. It stops all regular gmc windows from behaving normally.
3. As far as I know none of the other gnome applications have their
   preferences modal.
(4. One of the reasons I dislike Windows is the annoying fact that
dialog windows totally block the application.)

Ronald de Man


Index: gnome-file-property-dialog.c
===================================================================
RCS file: /cvs/gnome/mc/gnome/gnome-file-property-dialog.c,v
retrieving revision 1.33
diff -u -r1.33 gnome-file-property-dialog.c
--- gnome-file-property-dialog.c	1999/03/30 06:10:09	1.33
+++ gnome-file-property-dialog.c	1999/04/02 21:24:43
@@ -267,7 +267,7 @@
 	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 @@
 	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 @@
 	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);
Index: gprefs.c
===================================================================
RCS file: /cvs/gnome/mc/gnome/gprefs.c,v
retrieving revision 1.10
diff -u -r1.10 gprefs.c
--- gprefs.c	1999/03/08 05:18:52	1.10
+++ gprefs.c	1999/04/02 21:24:43
@@ -447,8 +447,8 @@
         PrefsPage *cur_page;
 
 	dlg->prop_box = gnome_property_box_new ();
-	gnome_dialog_set_parent (GNOME_DIALOG (dlg->prop_box), GTK_WINDOW (dlg->panel->xwindow));
-	gtk_window_set_modal (GTK_WINDOW (dlg->prop_box), TRUE);
+/*	gnome_dialog_set_parent (GNOME_DIALOG (dlg->prop_box), GTK_WINDOW (dlg->panel->xwindow));
+	gtk_window_set_modal (GTK_WINDOW (dlg->prop_box), TRUE);*/
 	gtk_window_set_title (GTK_WINDOW (dlg->prop_box), _("Preferences"));
 
         i = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]