empty place check fixed

svn: r4775
This commit is contained in:
Don Allingham
2005-06-03 16:03:45 +00:00
parent 493be971c2
commit bda1ace41f
4 changed files with 13 additions and 4 deletions

View File

@@ -32,7 +32,8 @@ def fill_combo(combo,data_list):
store = gtk.ListStore(gobject.TYPE_STRING)
for data in data_list:
store.append(row=[data])
if data:
store.append(row=[data])
combo.set_model(store)
combo.set_text_column(0)
@@ -45,7 +46,8 @@ def fill_combo(combo,data_list):
def fill_entry(entry,data_list):
store = gtk.ListStore(gobject.TYPE_STRING)
for data in data_list:
store.append(row=[data])
if data:
store.append(row=[data])
completion = gtk.EntryCompletion()
completion.set_model(store)
@@ -56,7 +58,8 @@ def fill_entry(entry,data_list):
def fill_option_text(combobox,data):
store = gtk.ListStore(str)
for item in data:
store.append(row=[item])
if item:
store.append(row=[item])
combobox.set_model(store)
combobox.set_active(0)