2 * vim:ts=4:sw=4:et:cindent:cino=(0
5 #include <hildon-cp-plugin/hildon-cp-plugin-interface.h>
8 #include "maemo-tweaks-desktop.h"
10 GtkWidget *create_dialog (GtkWindow *parent)
15 dialog = gtk_dialog_new_with_buttons
18 GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR,
25 box = GTK_DIALOG (dialog)->vbox;
26 gtk_box_pack_start (GTK_BOX (box),
27 maemo_tweaks_desktop_create_snap_to_grid (),
34 osso_return_t execute (osso_context_t *osso, gpointer data,
35 gboolean user_activated)
40 dialog = create_dialog (GTK_WINDOW (data));
41 response = gtk_dialog_run (GTK_DIALOG (dialog));
42 if (response == GTK_RESPONSE_OK)
46 gtk_widget_destroy (GTK_WIDGET (dialog));