sync with sylpheed 0.7.0cvs27
[claws.git] / src / gtkutils.h
index 492f6f2..0cc5c3a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2002 Hiroyuki Yamamoto
  *
  * 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
 #ifndef __GTKUTILS_H__
 #define __GTKUTILS_H__
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include <glib.h>
 #include <gdk/gdk.h>
 #include <gtk/gtkmain.h>
 #include <gtk/gtkwidget.h>
+#include <gtk/gtkcontainer.h>
+#include <gtk/gtkeditable.h>
 #include <gtk/gtkctree.h>
 #include <gtk/gtkcombo.h>
+#include "gtkstext.h"
+#include <stdlib.h>
+#if HAVE_WCHAR_H
+#  include <wchar.h>
+#endif
 
 #define GTK_EVENTS_FLUSH() \
 { \
@@ -84,21 +95,43 @@ void gtkut_ctree_expand_parent_all  (GtkCTree       *ctree,
                                         GtkCTreeNode   *node);
 void gtkut_ctree_set_focus_row         (GtkCTree       *ctree,
                                         GtkCTreeNode   *node);
+
 void gtkut_clist_set_focus_row         (GtkCList       *clist,
                                         gint            row);
+
 void gtkut_combo_set_items             (GtkCombo       *combo,
                                         const gchar    *str1, ...);
-void gtkut_widget_disable_theme_engine (GtkWidget      *widget);
 
-void gtkut_widget_wait_for_draw                (GtkWidget      *widget);
+void gtkut_container_remove            (GtkContainer   *container,
+                                        GtkWidget      *widget);
+
+gboolean gtkut_stext_match_string      (GtkSText       *text,
+                                        gint            pos,
+                                        wchar_t        *wcs,
+                                        gint            len,
+                                        gboolean        case_sens);
+guint gtkut_stext_str_compare_n                (GtkSText       *text,
+                                        guint           pos1,
+                                        guint           pos2,
+                                        guint           len,
+                                        guint           text_len);
+guint gtkut_stext_str_compare          (GtkSText       *text,
+                                        guint           start_pos,
+                                        guint           text_len,
+                                        const gchar    *str);
+gboolean gtkut_stext_is_uri_string     (GtkSText       *text,
+                                        guint           start_pos,
+                                        guint           text_len);
+void gtk_stext_clear                   (GtkSText       *text);
 
+void gtkut_widget_disable_theme_engine (GtkWidget      *widget);
+void gtkut_widget_wait_for_draw                (GtkWidget      *widget);
 void gtkut_widget_get_uposition                (GtkWidget      *widget,
                                         gint           *px,
                                         gint           *py);
-
 void gtkut_widget_init                 (void);
 
-void gtk_widget_set_app_icon           (GtkWidget      *widget);
-void gtk_widget_set_composer_icon      (GtkWidget      *widget);
+void gtkut_widget_set_app_icon         (GtkWidget      *widget);
+void gtkut_widget_set_composer_icon    (GtkWidget      *widget);
 
 #endif /* __GTKUTILS_H__ */