]> Pileus Git - ~andy/gtk/commit
app-chooser-button: change the API approach for custom items
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 29 Nov 2010 15:04:59 +0000 (16:04 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 29 Nov 2010 15:04:59 +0000 (16:04 +0100)
commit232a5c7b3b4a9bc093f1c68cf9d87e94f47e15ea
tree7041b403858b62449ffd5786bb6d786dd22f50f3
parent8ae7993397816217cfd7b38a7fc3606a2210d64c
app-chooser-button: change the API approach for custom items

Introduce a 'custom-item-activated' on the widget, which behaves
similairly to GtkEntryCompletion::action-activated, i.e. is emitted when
a custom item is chosen from the dropdown list.
Clients can use the name provided when adding the item as a detail for
the signal, to get notified when that specific item is activated, or use
the signal without details to get notifications for all custom items.
gtk/gtkappchooserbutton.c
gtk/gtkappchooserbutton.h
tests/testappchooserbutton.c