*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
*/
#ifndef __GTKUTILS_H__
#ifdef MAEMO
#include <hildon-widgets/hildon-program.h>
+#include <hildon-widgets/hildon-window.h>
+#include "main.h"
#include <gtk/gtkmain.h>
#endif
void label_window_destroy(GtkWidget *widget);
void gtkut_window_popup (GtkWidget *window);
-#ifdef MAEMO
-HildonWindow *gtkut_window_new (GtkWindowType type,
- const gchar *class);
-#else
GtkWidget *gtkut_window_new (GtkWindowType type,
const gchar *class);
-#endif
+
void gtkut_widget_get_uposition (GtkWidget *widget,
gint *px,
gboolean gtkut_tree_model_get_iter_last(GtkTreeModel *model,
GtkTreeIter *iter);
+gboolean gtkut_tree_iter_comp(GtkTreeModel *model,
+ GtkTreeIter *iter1,
+ GtkTreeIter *iter2);
+
+gint gtkut_list_view_get_selected_row(GtkWidget *list_view);
+gboolean gtkut_list_view_select_row(GtkWidget *list, gint row);
+
#endif /* __GTKUTILS_H__ */