1999-02-28 Miguel de Icaza <miguel@nuclecu.unam.mx>

* gnome-file-property-dialog.c (create_settings_pane): Simplify
	the test and fix it.
This commit is contained in:
Miguel de Icaza 1999-03-01 01:18:40 +00:00
parent 222cb72a9a
commit 8b195d8760
2 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,8 @@
1999-02-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-file-property-dialog.c (create_settings_pane): Simplify
the test and fix it.
* gdnd.c (drop_on_file): Fix these so that they can use the
metadata drop-action.

View File

@ -569,7 +569,8 @@ create_settings_pane (GnomeFilePropertyDialog *fp_dlg)
GtkWidget *align;
GtkWidget *table;
struct stat linkstat;
int finish;
vbox = gtk_vbox_new (FALSE, GNOME_PAD_SMALL);
gtk_container_set_border_width (GTK_CONTAINER (vbox), GNOME_PAD);
@ -591,7 +592,15 @@ create_settings_pane (GnomeFilePropertyDialog *fp_dlg)
if (S_ISLNK (fp_dlg->st.st_mode))
mc_stat (fp_dlg->file_name, &linkstat);
if (!(S_ISREG (fp_dlg->st.st_mode) || (S_ISLNK (fp_dlg->st.st_mode) && !S_ISREG (linkstat.st_mode)))) {
finish = 0;
if (!S_ISREG (fp_dlg->st.st_mode))
finish = 1;
if (S_ISLNK (fp_dlg->st.st_mode))
if (!S_ISREG (linkstat.st_mode))
finish = 1;
if (finish){
if (!fp_dlg->can_set_icon) {
gtk_widget_unref (vbox);
vbox = NULL;