* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
- * the License.
+ * the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
#include <stdlib.h>
#include <glib.h>
#include <gtk/gtk.h>
-#include "hildon.h"
+#include <hildon/hildon.h>
static GtkWidget*
create_button_with_icon (const gchar *icon);
}
int
-main (int argc,
- char **args)
+main (int argc,
+ char **argv)
{
- gtk_init (&argc, &args);
-
+ hildon_gtk_init (&argc, &argv);
+
GtkDialog *dialog = GTK_DIALOG (gtk_dialog_new ());
gtk_window_set_title (GTK_WINDOW (dialog), "icons");
gtk_table_attach (table, create_button_with_icon (GTK_STOCK_CANCEL), 1, 2, 0, 1, 0, 0, 0, 0);
gtk_table_attach (table, create_button_with_icon (GTK_STOCK_QUIT), 2, 3, 0, 1, 0, 0, 0, 0);
- gtk_table_attach (table, create_button_with_icon (GTK_STOCK_MEDIA_PLAY), 0, 1, 1, 2, 0, 0, 0, 0);
+ gtk_table_attach (table, create_button_with_icon (GTK_STOCK_SAVE), 0, 1, 1, 2, 0, 0, 0, 0);
gtk_table_attach (table, create_button_with_icon (GTK_STOCK_MEDIA_PAUSE), 1, 2, 1, 2, 0, 0, 0, 0);
- gtk_table_attach (table, create_button_with_icon ("qgn_note_info"), 2, 3, 1, 2, 0, 0, 0, 0);
+ gtk_table_attach (table, create_button_with_icon (GTK_STOCK_FILE), 2, 3, 1, 2, 0, 0, 0, 0);
- gtk_table_attach (table, create_button_with_icon ("qgn_note_infoprint"), 0, 1, 2, 3, 0, 0, 0, 0);
- gtk_table_attach (table, create_button_with_icon ("qgn_indi_pball_a"), 1, 2, 2, 3, 0, 0, 0, 0);
- gtk_table_attach (table, create_button_with_icon ("qgn_note_confirm"), 2, 3, 2, 3, 0, 0, 0, 0);
-
gtk_table_set_col_spacings (table, 6);
gtk_table_set_row_spacings (table, 6);