2007-10-13 [paul] 3.0.2cvs66
[claws.git] / src / gtk / gtkutils.h
index 2dc2879241492d6abd1afc2e9651656164f8d90f..4a810e655825d2d6771ee6970eff70491be292c7 100644 (file)
@@ -4,7 +4,7 @@
  *
  * 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,
@@ -13,8 +13,8 @@
  * 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__
 #  include <wchar.h>
 #endif
 
+#ifdef MAEMO
+#include <hildon-widgets/hildon-program.h>
+#include <hildon-widgets/hildon-window.h>
+#include "main.h"
+#include <gtk/gtkmain.h>
+#endif
+
 typedef struct _ComboButton    ComboButton;
 
 struct _ComboButton
@@ -182,7 +189,12 @@ gboolean gtkut_text_view_search_string_backward    (GtkTextView *text, const gchar
                                        gboolean case_sens);
 
 GtkWidget *label_window_create(const gchar *str);
+void label_window_destroy(GtkWidget *widget);
+
 void gtkut_window_popup                        (GtkWidget      *window);
+GtkWidget *gtkut_window_new            (GtkWindowType   type,
+                                        const gchar    *class);
+
 
 void gtkut_widget_get_uposition                (GtkWidget      *widget,
                                         gint           *px,
@@ -206,8 +218,8 @@ GtkWidget *gtkut_get_focused_child  (GtkContainer   *parent);
 GtkWidget *gtkut_get_browse_file_btn(const gchar *label);
 GtkWidget *gtkut_get_browse_directory_btn(const gchar *label);
 GtkWidget *gtkut_get_replace_btn(const gchar *label);
+GtkWidget *gtkut_get_options_frame(GtkWidget *box, GtkWidget **frame, const gchar *frame_label);
 #if HAVE_LIBCOMPFACE
-gint create_xpm_from_xface(gchar *xpm[], const gchar *xface);
 GtkWidget *xface_get_from_header(const gchar *o_xface, GdkColor *background,
                                 GdkWindow *window);
 #endif
@@ -233,4 +245,11 @@ gboolean gtkut_tree_model_text_iter_prev(GtkTreeModel *model,
 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__ */