Mercurial > gftp.yaz
comparison src/gtk/bookmarks.c @ 867:b1cfb42c5be4
2006-11-30 Brian Masney <masneyb@gftp.org>
* src/gtk/bookmarks.c (do_make_new) - don't allow creating
bookmarks that have an empty description. (closes #367933)
author | masneyb |
---|---|
date | Sat, 23 Dec 2006 20:10:06 +0000 |
parents | 877282be3a78 |
children | 1808cebed602 |
comparison
equal
deleted
inserted
replaced
866:877282be3a78 | 867:b1cfb42c5be4 |
---|---|
412 | 412 |
413 gftp_get_pixmap (tree, "open_dir.xpm", &opendir_pixmap, &opendir_bitmap); | 413 gftp_get_pixmap (tree, "open_dir.xpm", &opendir_pixmap, &opendir_bitmap); |
414 gftp_get_pixmap (tree, "dir.xpm", &closedir_pixmap, &closedir_bitmap); | 414 gftp_get_pixmap (tree, "dir.xpm", &closedir_pixmap, &closedir_bitmap); |
415 | 415 |
416 str = gtk_entry_get_text (GTK_ENTRY (ddata->edit)); | 416 str = gtk_entry_get_text (GTK_ENTRY (ddata->edit)); |
417 if (*str == '\0') | |
418 { | |
419 ftp_log (gftp_logging_misc, NULL, | |
420 _("You must specify a name for the bookmark.")); | |
421 return; | |
422 } | |
417 | 423 |
418 newentry = g_malloc0 (sizeof (*newentry)); | 424 newentry = g_malloc0 (sizeof (*newentry)); |
419 #if GTK_MAJOR_VERSION == 1 | 425 #if GTK_MAJOR_VERSION == 1 |
420 newentry->path = g_strdup (str); | 426 newentry->path = g_strdup (str); |
421 | 427 |