mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-25 19:54:13 +03:00
1999-03-17 Jonathan Blandford <jrb@redhat.com>
* main.c (main): Put in a warning when run as root. 1999-03-17 Jonathan Blandford <jrb@redhat.com> * gnome-file-property-dialog.c (generate_icon_sel): I don't know who broke this, but it was a mess. It now does the right thing, and works...
This commit is contained in:
parent
56d2b086aa
commit
fbc07a11d4
@ -1,3 +1,9 @@
|
||||
1999-03-17 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gnome-file-property-dialog.c (generate_icon_sel): I don't know
|
||||
who broke this, but it was a mess. It now does the right thing,
|
||||
and works...
|
||||
|
||||
1999-03-16 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gnome-open-dialog.c (read_directory): We now honor .order files.
|
||||
|
@ -438,14 +438,11 @@ generate_icon_sel (GnomeFilePropertyDialog *fp_dlg)
|
||||
|
||||
retval = gnome_icon_entry_new ("gmc_file_icon", "Select an Icon");
|
||||
icon = g_strdup (gicon_get_filename_for_icon (fp_dlg->im));
|
||||
if (icon)
|
||||
|
||||
if (icon == NULL)
|
||||
return retval;
|
||||
|
||||
if (icon[0]){
|
||||
return retval;
|
||||
}
|
||||
gnome_icon_entry_set_icon (GNOME_ICON_ENTRY (retval), icon);
|
||||
fp_dlg->icon_filename = g_strdup (icon);
|
||||
fp_dlg->icon_filename = icon;
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
1999-03-17 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* main.c (main): Put in a warning when run as root.
|
||||
|
||||
1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* boxes.c (symlink_dialog): Put this inside an "#ifndef
|
||||
|
14
src/main.c
14
src/main.c
@ -3056,7 +3056,19 @@ int main (int argc, char *argv [])
|
||||
if (alternate_plus_minus)
|
||||
application_keypad_mode ();
|
||||
# endif
|
||||
|
||||
/* INSERT ROOT DIALOG HERE */
|
||||
#ifdef HAVE_GNOME
|
||||
if (geteuid () == 0) {
|
||||
GtkWidget *warning_dlg;
|
||||
warning_dlg = gnome_message_box_new (_("You are running the GNOME Midnight Commander as root. \n\n"
|
||||
"You will not be protected from severly damaging your system\n"
|
||||
"if you continue."),
|
||||
GNOME_MESSAGE_BOX_WARNING,
|
||||
_("Continue"), GNOME_STOCK_BUTTON_CANCEL, NULL);
|
||||
if (gnome_dialog_run (GNOME_DIALOG (warning_dlg)) != 0)
|
||||
exit (0);
|
||||
}
|
||||
#endif
|
||||
if (show_change_notice){
|
||||
message (1, _(" Notice "),
|
||||
_(" The Midnight Commander configuration files \n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user