Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-properties.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-06-15 00:11:33 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-06-15 00:11:33 (GMT)
commit4301d174db5623094cb313a467a2abab34a2b381 (patch)
treed388cbc51e8f1cc1d33164167d266fcc1e41dc90 /shell/ev-properties.h
parenta09a209d6ad8446ad981c66ed3733d8f17263918 (diff)
Make it an object, cleanup the code, api to show it as transient and to
2005-06-15 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-properties.c: (ev_properties_dispose), (ev_properties_class_init), (dialog_destroy_cb), (ev_properties_init), (job_fonts_finished_cb), (setup_fonts_view), (ev_properties_set_document), (ev_properties_new), (ev_properties_show): * shell/ev-properties.h: Make it an object, cleanup the code, api to show it as transient and to set the document. * shell/ev-window.c: (ev_window_setup_document), (ev_window_cmd_file_properties): Adapt to EvProperties changes, do not show multiple times, update it when document changes.
Diffstat (limited to 'shell/ev-properties.h')
-rw-r--r--shell/ev-properties.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/shell/ev-properties.h b/shell/ev-properties.h
index f17e963..410ed1a 100644
--- a/shell/ev-properties.h
+++ b/shell/ev-properties.h
@@ -23,12 +23,27 @@
#include "ev-document.h"
-#include <gtk/gtkdialog.h>
-#include <gtk/gtktreemodel.h>
+#include <gtk/gtkwidget.h>
G_BEGIN_DECLS
-GtkDialog *ev_properties_new (EvDocument *document, const EvDocumentInfo *info);
+typedef struct _EvProperties EvProperties;
+typedef struct _EvPropertiesClass EvPropertiesClass;
+typedef struct _EvPropertiesPrivate EvPropertiesPrivate;
+
+#define EV_TYPE_PROPERTIES (ev_properties_get_type())
+#define EV_PROPERTIES(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PROPERTIES, EvProperties))
+#define EV_PROPERTIES_CLASS(klass) (G_TYPE_CHACK_CLASS_CAST((klass), EV_TYPE_PROPERTIES, EvPropertiesClass))
+#define EV_IS_PROPERTIES(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PROPERTIES))
+#define EV_IS_PROPERTIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_PROPERTIES))
+#define EV_PROPERTIES_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_PROPERTIES, EvPropertiesClass))
+
+GType ev_properties_get_type (void);
+EvProperties *ev_properties_new (void);
+void ev_properties_set_document (EvProperties *properties,
+ EvDocument *document);
+void ev_properties_show (EvProperties *properties,
+ GtkWidget *parent);
G_END_DECLS