projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5629fd
)
gtk-demo: don't try to add tabs for empty filenames
author
Cosimo Cecchi
<cosimoc@gnome.org>
Wed, 30 May 2012 16:55:51 +0000
(12:55 -0400)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Wed, 30 May 2012 17:17:23 +0000
(13:17 -0400)
demos/gtk-demo/main.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/main.c
b/demos/gtk-demo/main.c
index 95e841e615cd9364fde6241e81f518785fb80f69..2ac72170d10c104979f76f44a9567aa792726c85 100644
(file)
--- a/
demos/gtk-demo/main.c
+++ b/
demos/gtk-demo/main.c
@@
-573,8
+573,10
@@
load_file (const gchar *filename)
names = g_strsplit (filename, " ", -1);
- for (i = 1; names[i]; i++)
- add_data_tab (names[i]);
+ for (i = 1; names[i]; i++) {
+ if (strlen (names[i]) > 0)
+ add_data_tab (names[i]);
+ }
if (current_file && !strcmp (current_file, names[0]))
{