Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-metadata-manager.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-06-30 13:32:05 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-06-30 13:32:05 (GMT)
commitd0e4d9279d7aa4be1ddec50c2a87c63638632712 (patch)
treea4ae2c0a4f5318d73b8100215fd733d02410cac2 /shell/ev-metadata-manager.h
parent616f5c97013f1344caa6e899de6cc99664faa5e9 (diff)
Metadata manager from gedit but modified to use GValue, so that we dont
2005-06-30 Marco Pesenti Gritti <mpg@redhat.com> * shell/Makefile.am: * shell/ev-metadata-manager.c: (item_free), (ev_metadata_manager_init), (ev_metadata_manager_shutdown), (parse_value), (parseItem), (load_values), (ev_metadata_manager_get), (value_free), (ev_metadata_manager_set), (save_values), (save_item), (get_oldest), (resize_items), (ev_metadata_manager_save), (ev_metadata_manager_set_int): * shell/ev-metadata-manager.h: Metadata manager from gedit but modified to use GValue, so that we dont need to keep converting from strings. * configure.ac: ENABLE_METADATA conditional, on when dbus is on * shell/ev-application.c: (ev_application_open_uri): Show the window after load so that we can initialize window size before it's showed. * shell/ev-window.c: (ev_window_setup_from_metadata), (ev_window_open_uri), (window_configure_event_cb), (ev_window_init): Save and load metadata information about window size. Not yet keeping states in account. * shell/main.c: (main): Shutdown metadata manager.
Diffstat (limited to 'shell/ev-metadata-manager.h')
-rw-r--r--shell/ev-metadata-manager.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/shell/ev-metadata-manager.h b/shell/ev-metadata-manager.h
new file mode 100644
index 0000000..5c4d61d
--- /dev/null
+++ b/shell/ev-metadata-manager.h
@@ -0,0 +1,44 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * ev-metadata-manager.h
+ *
+ * Copyright (C) 2003 Paolo Maggi
+ *
+ * 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __EV_METADATA_MANAGER_H__
+#define __EV_METADATA_MANAGER_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+gboolean ev_metadata_manager_get (const gchar *uri,
+ const gchar *key,
+ GValue *value);
+void ev_metadata_manager_set (const gchar *uri,
+ const gchar *key,
+ const GValue *value);
+void ev_metadata_manager_set_int (const gchar *uri,
+ const gchar *key,
+ int value);
+void ev_metadata_manager_shutdown (void);
+
+G_END_DECLS
+
+#endif /* __EV_METADATA_MANAGER_H__ */