Add Makefile.am
[tweakr] / maemo-tweaks.c
1 /*
2  * vim:ts=4:sw=4:et:cindent:cino=(0
3  */ 
4
5 #include <hildon-cp-plugin/hildon-cp-plugin-interface.h>
6 #include <gtk/gtk.h>
7
8 GtkWidget *create_dialog (GtkWindow *parent)
9 {
10     GtkWidget *dialog;
11
12     dialog = gtk_dialog_new_with_buttons
13         ("Maemo 5 Tweaks",
14          parent,
15          GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR,
16          GTK_STOCK_OK,
17          GTK_RESPONSE_OK,
18          GTK_STOCK_CANCEL,
19          GTK_RESPONSE_CANCEL,
20          NULL);
21
22     return dialog;
23 }
24
25
26 osso_return_t execute (osso_context_t *osso, gpointer data,
27                        gboolean user_activated)
28 {
29     GtkWidget *dialog;
30     gint response;
31
32     dialog = create_dialog (GTK_WINDOW (data));
33     response = gtk_dialog_run (GTK_DIALOG (dialog));
34     if (response == GTK_RESPONSE_OK)
35     {
36     }
37
38     gtk_widget_destroy (GTK_WIDGET (dialog));
39     return OSSO_OK;
40 }
41