2 * This file is a part of hildon
4 * Copyright (C) 2008 Nokia Corporation, all rights reserved.
6 * Contact: Karl Lattimer <karl.lattimer@nokia.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
26 * SECTION:hildon-dialog
27 * @short_description: Widget representing a popup window in the Hildon framework.
28 * @see_also: #HildonCodeDialog, #HildonColorChooserDialog, #HildonFontSelectionDialog, #HildonGetPasswordDialog, #HildonLoginDialog, #HildonSetPasswordDialog, #HildonSortDialog, #HildonWizardDialog
30 * The HildonDialog is a GTK widget which represent a popup window in the
31 * Hildon framework. It is derived from the GtkDialog and provides additional
32 * commodities specific to the Hildon framework.
35 * <title>Simple <structname>HildonDialog</structname> usage</title>
37 * void quick_message (gchar *message)
40 * GtkWidget *dialog, *label;
42 * dialog = hildon_dialog_new ();
43 * label = gtk_label_new (message);
45 * g_signal_connect_swapped (dialog,
47 * G_CALLBACK (gtk_widget_destroy),
50 * gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox),
52 * gtk_widget_show_all (dialog);
59 #include "hildon-dialog.h"
61 G_DEFINE_TYPE (HildonDialog, hildon_dialog, GTK_TYPE_DIALOG);
64 hildon_dialog_class_init (HildonDialogClass * dialog_class)
69 hildon_dialog_init (HildonDialog *self)
76 * Creates a new #HildonDialog widget
78 * Returns: the newly created #HildonDialog
81 hildon_dialog_new (void)
83 GtkWidget *self = g_object_new (HILDON_TYPE_DIALOG, NULL);