Fixed bug that returned NULL if a filename was selected.
2001-03-26 Alexander Larsson <alexl@redhat.com> * gtk/gtkfilesel.c (gtk_file_selection_get_filename): Fixed bug that returned NULL if a filename was selected.
This commit is contained in:
committed by
Alexander Larsson
parent
11ed2b2ebd
commit
2089205e09
@@ -1,3 +1,8 @@
|
||||
2001-03-26 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* gtk/gtkfilesel.c (gtk_file_selection_get_filename):
|
||||
Fixed bug that returned NULL if a filename was selected.
|
||||
|
||||
2001-03-24 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2001-03-26 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* gtk/gtkfilesel.c (gtk_file_selection_get_filename):
|
||||
Fixed bug that returned NULL if a filename was selected.
|
||||
|
||||
2001-03-24 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2001-03-26 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* gtk/gtkfilesel.c (gtk_file_selection_get_filename):
|
||||
Fixed bug that returned NULL if a filename was selected.
|
||||
|
||||
2001-03-24 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2001-03-26 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* gtk/gtkfilesel.c (gtk_file_selection_get_filename):
|
||||
Fixed bug that returned NULL if a filename was selected.
|
||||
|
||||
2001-03-24 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2001-03-26 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* gtk/gtkfilesel.c (gtk_file_selection_get_filename):
|
||||
Fixed bug that returned NULL if a filename was selected.
|
||||
|
||||
2001-03-24 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2001-03-26 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* gtk/gtkfilesel.c (gtk_file_selection_get_filename):
|
||||
Fixed bug that returned NULL if a filename was selected.
|
||||
|
||||
2001-03-24 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2001-03-26 Alexander Larsson <alla@lysator.liu.se>
|
||||
|
||||
* gtk/gtkfilesel.c (gtk_file_selection_get_filename):
|
||||
Fixed bug that returned NULL if a filename was selected.
|
||||
|
||||
2001-03-24 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
|
||||
|
||||
@@ -868,7 +868,7 @@ gtk_file_selection_get_filename (GtkFileSelection *filesel)
|
||||
if (text)
|
||||
{
|
||||
sys_filename = g_filename_from_utf8 (cmpl_completion_fullname (text, filesel->cmpl_state), -1, NULL, NULL, NULL);
|
||||
if (sys_filename)
|
||||
if (!sys_filename)
|
||||
return nothing;
|
||||
strncpy (something, sys_filename, sizeof (something));
|
||||
g_free (sys_filename);
|
||||
|
||||
Reference in New Issue
Block a user