2007-05-03 [wwp] 2.9.1cvs41
[claws.git] / src / gtk / gtkutils.h
index 54bcdef..52cff00 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws team
+ * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
  *
  * 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
 #include <gtk/gtkcombo.h>
 #include <gtk/gtktextview.h>
 #include <gtk/gtkitemfactory.h>
+#include <gtk/gtktreemodel.h>
 #include <stdlib.h>
 #if HAVE_WCHAR_H
 #  include <wchar.h>
 #endif
 
+#ifdef MAEMO
+#include <hildon-widgets/hildon-program.h>
+#include <gtk/gtkmain.h>
+#endif
+
 typedef struct _ComboButton    ComboButton;
 
 struct _ComboButton
@@ -112,6 +118,11 @@ void gtkut_stock_button_set_create (GtkWidget      **bbox,
                                         GtkWidget      **button3,
                                         const gchar     *label3);
 
+void gtkut_stock_with_text_button_set_create(GtkWidget **bbox,
+                                  GtkWidget **button1, const gchar *label1, const gchar *text1,
+                                  GtkWidget **button2, const gchar *label2, const gchar *text2,
+                                  GtkWidget **button3, const gchar *label3, const gchar *text3);
+
 ComboButton *gtkut_combo_button_create (GtkWidget              *button,
                                         GtkItemFactoryEntry    *entries,
                                         gint                    n_entries,
@@ -176,7 +187,16 @@ 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);
+#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,
@@ -200,8 +220,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
@@ -220,4 +240,18 @@ void gtkutils_scroll_one_line      (GtkWidget *widget,
 gboolean gtkutils_scroll_page  (GtkWidget *widget, 
                                 GtkAdjustment *vadj, 
                                 gboolean up);
+
+gboolean gtkut_tree_model_text_iter_prev(GtkTreeModel *model,
+                                GtkTreeIter *iter,
+                                const gchar* text);
+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__ */