diff options
author | George Lebl <jirka@5z.com> | 2001-07-09 07:12:30 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 2001-07-09 07:12:30 +0000 |
commit | 303fd178613055999960d5f3cd98b4f47de257fc (patch) | |
tree | 471be4218ceddded80159f7dddc8dcf45c04cbe0 /gui/gdmphotosetup.c | |
parent | 8a9beb8e3e718a1f3c2a524e210732ba760522db (diff) | |
download | gdm-303fd178613055999960d5f3cd98b4f47de257fc.tar.gz |
Use vicious-extensions module rather then local routines
Mon Jul 09 00:14:02 2001 George Lebl <jirka@5z.com>
* Makefile.am, autogen.sh, configure.in, daemon/Makefile.am,
daemon/auth.c, daemon/gdm.c, daemon/gdm.h, daemon/misc.c,
daemon/server.c, daemon/slave.c, daemon/verify-crypt.c,
daemon/verify-pam.c, daemon/verify-shadow.c, daemon/xdmcp.c,
gui/Makefile.am, gui/gdmchooser.c, gui/gdmconfig.c, gui/gdmlogin.c,
gui/gdmphotosetup.c, gui/misc.[ch], po/POTFILES.in: Use
vicious-extensions module rather then local routines
* gui/icon-entry-hack.[ch]: remove, in vicious-extensions now
Diffstat (limited to 'gui/gdmphotosetup.c')
-rw-r--r-- | gui/gdmphotosetup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/gdmphotosetup.c b/gui/gdmphotosetup.c index 66ae96b0..5bd76127 100644 --- a/gui/gdmphotosetup.c +++ b/gui/gdmphotosetup.c @@ -24,6 +24,9 @@ #include <sys/stat.h> #include <fcntl.h> #include <errno.h> + +#include <viciousui.h> + #include "gdm.h" /* If path starts with a "trusted" directory, don't sanity check things */ @@ -94,7 +97,7 @@ main (int argc, char *argv[]) gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), photo, TRUE, TRUE, 0); - if ( ! gdm_string_empty (last_pix)) { + if ( ! ve_string_empty (last_pix)) { GtkWidget *e = gnome_pixmap_entry_gtk_entry (GNOME_PIXMAP_ENTRY (photo)); gtk_entry_set_text (GTK_ENTRY (e), last_pix); @@ -105,7 +108,7 @@ main (int argc, char *argv[]) while (gnome_dialog_run (GNOME_DIALOG (dialog)) == 0) { struct stat s; char *pixmap = gnome_pixmap_entry_get_filename (GNOME_PIXMAP_ENTRY (photo)); - if (gdm_string_empty (pixmap) || + if (ve_string_empty (pixmap) || stat (pixmap, &s) < 0) { GtkWidget *d; d = gnome_warning_dialog (_("No picture selected.")); |