+2005-01-01 Marco Pesenti Gritti <marco@gnome.org>
+
+ * ps/gsdefaults.c: (gtk_gs_defaults_gconf_client),
+ (gtk_gs_defaults_changed):
+ * ps/gsdefaults.h:
+ * ps/gtkgs.c:
+ * ps/gtkgs.h:
+ * ps/ps.h:
+
+ Cleanup headers dependencies
+
2005-01-01 Marco Pesenti Gritti <marco@gnome.org>
* ps/Makefile.am:
#include <gnome.h>
#include <math.h>
-#include "gtkgs.h"
#include "gsdefaults.h"
#include <gconf/gconf-client.h>
+static void gtk_gs_defaults_changed (GConfClient * client, guint cnxn_id,
+ GConfEntry * entry, gpointer user_data);
+
/**
* defaults for GtkGS widgets
**/
}
}
+static GConfClient *
+gtk_gs_defaults_gconf_client()
+{
+ if(!gconf_client) {
+ g_assert(gconf_is_initialized());
+ gconf_client = gconf_client_get_default();
+ g_assert(gconf_client != NULL);
+ gconf_client_add_dir(gconf_client, "/apps/ggv/gtkgs",
+ GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
+ gconf_client_notify_add(gconf_client,
+ "/apps/ggv/gtkgs", (GConfClientNotifyFunc)
+ gtk_gs_defaults_changed, NULL, NULL, NULL);
+ }
+
+ return gconf_client;
+}
+
void
gtk_gs_defaults_load()
{
gtk_gs_defaults_set_scroll_step
(gconf_client_get_float(client, "/apps/ggv/gtkgs/scrollstep", NULL));
}
-
-GConfClient *
-gtk_gs_defaults_gconf_client()
-{
- if(!gconf_client) {
- g_assert(gconf_is_initialized());
- gconf_client = gconf_client_get_default();
- g_assert(gconf_client != NULL);
- gconf_client_add_dir(gconf_client, "/apps/ggv/gtkgs",
- GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
- gconf_client_notify_add(gconf_client,
- "/apps/ggv/gtkgs", (GConfClientNotifyFunc)
- gtk_gs_defaults_changed, NULL, NULL, NULL);
- }
-
- return gconf_client;
-}
#include <sys/types.h>
#include <stdio.h>
+#include "gstypes.h"
+
G_BEGIN_DECLS
#define GTK_GS_TYPE (gtk_gs_get_type())
typedef struct _GtkGS GtkGS;
typedef struct _GtkGSClass GtkGSClass;
-typedef struct _GtkGSPaperSize GtkGSPaperSize;
-
-typedef enum {
- GTK_GS_ORIENTATION_NONE = -1,
- GTK_GS_ORIENTATION_PORTRAIT = 0,
- GTK_GS_ORIENTATION_SEASCAPE = 3,
- GTK_GS_ORIENTATION_UPSIDEDOWN = 2,
- GTK_GS_ORIENTATION_LANDSCAPE = 1
-} GtkGSOrientation;
-
-typedef enum {
- GTK_GS_ZOOM_ABSOLUTE = 0,
- GTK_GS_ZOOM_FIT_WIDTH = 1,
- GTK_GS_ZOOM_FIT_PAGE = 2
-} GtkGSZoomMode;
struct _GtkGS {
GObject object;
struct record_list *next;
};
-struct _GtkGSPaperSize {
- gchar *name;
- gint width, height;
-};
-
GType gtk_gs_get_type(void);
GObject *gtk_gs_new_from_file(GtkAdjustment * hadj, GtkAdjustment * vadj,