]> www.fi.muni.cz Git - evince.git/blobdiff - ps/ggvutils.h
display an error if the document doesn't support find (better ideas?)
[evince.git] / ps / ggvutils.h
index 92aecf80b5e83f81158be5ce31a68c473fb86fcd..093b4c182f1c6bf91b767ea64d17db9ad52b1adf 100644 (file)
 #ifndef __GGV_UTILS_H__
 #define __GGV_UTILS_H__
 
-#include <gnome.h>
-
-#include <gtkgs.h>
-
-/*Define StockIds*/
-#define GGV_CLEAR_ALL          "ggv-clear-all"
-#define GGV_TOGGLE_ALL         "ggv-toggle-all"
-#define GGV_TOGGLE_EVEN                "ggv-toggle-even"
-#define GGV_TOGGLE_ODD         "ggv-toggle-odd"
-#define GGV_FIT_WIDTH          "ggv-fit-width"
-#define GGV_ZOOM                   "ggv-zoom"
+#include "gtkgs.h"
 
 extern GtkGSPaperSize ggv_paper_sizes[];
-extern const gchar *ggv_orientation_labels[];
-extern const gint ggv_max_orientation_labels;
-extern const gfloat ggv_unit_factors[];
-extern const gchar *ggv_unit_labels[];
-extern const gint ggv_max_unit_labels;
 extern gfloat ggv_zoom_levels[];
 extern const gchar *ggv_zoom_level_names[];
 extern const gint ggv_max_zoom_levels;
-extern const gchar *ggv_auto_fit_modes[];
-extern const gint ggv_max_auto_fit_modes;
-
-/* zoom level index <-> zoom factor */
-gint ggv_zoom_index_from_float(gfloat zoom_level);
-gfloat ggv_zoom_level_from_index(gint index);
-
-/* Split delimited string into a list of strings. */
-GSList *ggv_split_string(const gchar * string, const gchar * delimiter);
-
-/* Get index of a string from a list of them. */
-gint ggv_get_index_of_string(gchar * string, gchar ** strings);
-
-/* Quote filename for system call */
-gchar *ggv_quote_filename(const gchar * str);
-
-/* escape filename to conform to URI specification */
-gchar *ggv_filename_to_uri(const gchar * fname);
 
 /* If file exists and is a regular file then return its length, else -1 */
 gint ggv_file_length(const gchar * filename);
@@ -69,17 +36,4 @@ gint ggv_file_length(const gchar * filename);
 /* Test if file exists, is a regular file and its length is > 0 */
 gboolean ggv_file_readable(const char *filename);
 
-/* Set a tooltip for a widget */
-void ggv_set_tooltip(GtkWidget * w, const gchar * tip);
-
-/* zoom <-> magstep (currently not used...) */
-gfloat ggv_compute_zoom(gint zoom_spec);
-gint ggv_compute_spec(gfloat zoom);
-
-void ggv_raise_and_focus_widget(GtkWidget * widget);
-
-void ggv_get_window_size(GtkWidget * widget, gint * width, gint * height);
-
-void ggv_init_stock_icons(void);
-
 #endif /* __GGV_UTILS_H__ */