background: Dump the selected item in the test program

This commit is contained in:
Bastien Nocera 2013-10-02 19:17:51 +02:00
parent 5d16f81821
commit 42ddaffc9a

View file

@ -6,7 +6,14 @@ on_dialog_response (GtkDialog *dialog,
int response_id,
gpointer user_data)
{
g_message ("response: %d", response_id);
g_debug ("response: %d", response_id);
if (response_id == GTK_RESPONSE_OK) {
CcBackgroundItem *item;
item = cc_background_chooser_dialog_get_item (CC_BACKGROUND_CHOOSER_DIALOG (dialog));
cc_background_item_dump (item);
g_object_unref (item);
}
gtk_widget_destroy (GTK_WIDGET (dialog));
gtk_main_quit ();
}
@ -15,6 +22,8 @@ int main (int argc, char **argv)
{
GtkWidget *dialog;
g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);
gtk_init (&argc, &argv);
dialog = cc_background_chooser_dialog_new ();