Only use files from the current directory if it looks like the srcdir.
2003-04-03 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/main.c (demo_find_file): Only use files from the current directory if it looks like the srcdir. (#109357)
This commit is contained in:

committed by
Matthias Clasen

parent
b5d8a668bd
commit
0d92566119
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/main.c (demo_find_file): Only use files from the
|
||||||
|
current directory if it looks like the srcdir. (#109357)
|
||||||
|
|
||||||
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/main.c (demo_find_file): Only use files from the
|
||||||
|
current directory if it looks like the srcdir. (#109357)
|
||||||
|
|
||||||
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/main.c (demo_find_file): Only use files from the
|
||||||
|
current directory if it looks like the srcdir. (#109357)
|
||||||
|
|
||||||
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/main.c (demo_find_file): Only use files from the
|
||||||
|
current directory if it looks like the srcdir. (#109357)
|
||||||
|
|
||||||
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-03 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/main.c (demo_find_file): Only use files from the
|
||||||
|
current directory if it looks like the srcdir. (#109357)
|
||||||
|
|
||||||
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
* gtk/gtkbutton.[ch] (gtk_button_class_init): add property
|
||||||
|
@ -45,7 +45,8 @@ demo_find_file (const char *base,
|
|||||||
{
|
{
|
||||||
g_return_val_if_fail (err == NULL || *err == NULL, NULL);
|
g_return_val_if_fail (err == NULL || *err == NULL, NULL);
|
||||||
|
|
||||||
if (g_file_test (base, G_FILE_TEST_EXISTS))
|
if (g_file_test ("gtk-logo-rgb.gif", G_FILE_TEST_EXISTS) &&
|
||||||
|
g_file_test (base, G_FILE_TEST_EXISTS))
|
||||||
return g_strdup (base);
|
return g_strdup (base);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user