[gnome-control-center] background: Dump the selected item in the test program
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Dump the selected item in the test program
- Date: Wed, 2 Oct 2013 17:36:32 +0000 (UTC)
commit 42ddaffc9a17e7e0811cc557e6d26e0d69bf511a
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 2 19:17:51 2013 +0200
background: Dump the selected item in the test program
panels/background/test-chooser-dialog.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/test-chooser-dialog.c b/panels/background/test-chooser-dialog.c
index b31e5aa..3e0f03a 100644
--- a/panels/background/test-chooser-dialog.c
+++ b/panels/background/test-chooser-dialog.c
@@ -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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]