diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 5adf25954..9964084d5 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,5 +1,10 @@ 1999-08-12 Federico Mena Quintero + * gnome-file-property-dialog.c (perm_group_new): If the file + belongs to an unknown user/group, use the group's number as a + string for the entry box. BUGFIX: GNOME bug tracker #1414. + (perm_owner_new): Do the same thing for the user. + * gdialogs.c (file_mask_dialog): Destroy the dialog if it was closed by the window manager, as well. (file_op_context_create_ui): Make the operation window modal so diff --git a/gnome/gnome-file-property-dialog.c b/gnome/gnome-file-property-dialog.c index 8f8a47401..30a22dfa6 100644 --- a/gnome/gnome-file-property-dialog.c +++ b/gnome/gnome-file-property-dialog.c @@ -809,8 +809,12 @@ perm_owner_new (GnomeFilePropertyDialog *fp_dlg) if (passwd) { fp_dlg->user_name = passwd->pw_name; gtk_entry_set_text (GTK_ENTRY (gentry), passwd->pw_name); - } else - gtk_entry_set_text (GTK_ENTRY (gentry), ""); + } else { + char buf[100]; + + g_snprintf (buf, sizeof (buf), _(" (%d)"), (int) fp_dlg->st.st_uid); + gtk_entry_set_text (GTK_ENTRY (gentry), buf); + } return gentry; } @@ -891,8 +895,16 @@ perm_group_new (GnomeFilePropertyDialog *fp_dlg) /* we're neither so we just put an entry down */ gentry = gtk_entry_new (); gtk_widget_set_sensitive (gentry, FALSE); + grp = getgrgid (fp_dlg->st.st_gid); - gtk_entry_set_text (GTK_ENTRY (gentry), grp->gr_name); + if (grp) + gtk_entry_set_text (GTK_ENTRY (gentry), grp->gr_name); + else { + char buf[100]; + + g_snprintf (buf, sizeof (buf), _(" (%d)"), fp_dlg->st.st_gid); + gtk_entry_set_text (GTK_ENTRY (gentry), buf); + } } g_free (grpname); return gentry;