]> www.fi.muni.cz Git - evince.git/blobdiff - shell/eggfindbar.h
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / shell / eggfindbar.h
index 0ac665ad5ed6c3e5565fd946acdd28568b1bfbea..1397da51a87ef6b6a25f3d7b5818536ce55b0ea7 100644 (file)
@@ -1,25 +1,26 @@
 /* Copyright (C) 2004 Red Hat, Inc.
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public License as
-published by the Free Software Foundation; either version 2 of 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
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with the Gnome Library; see the file COPYING.LIB.  If not,
-write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.
-*/
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public License as
+ * published by the Free Software Foundation; either version 2 of 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
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with the Gnome Library; see the file COPYING.LIB.  If not,
+ * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
+ * Boston, MA 02110-1301, USA.
+ *
+ */
 
 #ifndef __EGG_FIND_BAR_H__
 #define __EGG_FIND_BAR_H__
 
-#include <gtk/gtkbin.h>
+#include <gtk/gtk.h>
 
 G_BEGIN_DECLS
 
@@ -32,18 +33,24 @@ G_BEGIN_DECLS
 
 typedef struct _EggFindBar        EggFindBar;
 typedef struct _EggFindBarClass   EggFindBarClass;
+typedef struct _EggFindBarPrivate EggFindBarPrivate;
 
 struct _EggFindBar
 {
-  GtkBin parent_instance;
+  GtkToolbar parent;
 
   /*< private >*/
-  gpointer private_data;
+  EggFindBarPrivate *priv;
 };
 
 struct _EggFindBarClass
 {
-  GtkBinClass parent_class;
+  GtkToolbarClass parent_class;
+
+  void (* next)            (EggFindBar *find_bar);
+  void (* previous) (EggFindBar *find_bar);
+  void (* close)    (EggFindBar *find_bar);
+  void (* scroll)   (EggFindBar *find_bar, GtkScrollType* scroll);
 
   /* Padding for future expansion */
   void (*_gtk_reserved1) (void);
@@ -65,7 +72,8 @@ void        egg_find_bar_get_all_matches_color   (EggFindBar *find_bar,
                                                   GdkColor   *color);
 void        egg_find_bar_get_current_match_color (EggFindBar *find_bar,
                                                   GdkColor   *color);
-void        egg_find_bar_grab_focus              (EggFindBar *find_bar);
+void        egg_find_bar_set_status_text         (EggFindBar *find_bar,
+                                                  const char *text);
 
 G_END_DECLS