#include <config.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <libnautilus-extension/nautilus-extension-types.h>
#include <libnautilus-extension/nautilus-property-page-provider.h>
#include <evince-document.h>
#include "ev-properties-view.h"
Go to the source code of this file.
static GList * ev_properties_get_pages |
( |
NautilusPropertyPageProvider * |
provider, |
|
|
GList * |
files |
|
) |
| |
|
static |
Definition at line 85 of file ev-properties-main.c.
91 NautilusFileInfo *file;
93 gchar *mime_type = NULL;
94 GtkWidget *page, *
label;
95 NautilusPropertyPage *property_page;
98 if (files == NULL || files->next != NULL)
103 uri = nautilus_file_info_get_uri (file);
104 mime_type = nautilus_file_info_get_mime_type (file);
112 g_error_free (error);
116 label = gtk_label_new (
_(
"Document"));
120 gtk_widget_show (page);
121 property_page = nautilus_property_page_new (
"document-properties",
124 pages = g_list_prepend (pages, property_page);
130 if (document != NULL)
131 g_object_unref (document);
static void ev_properties_plugin_register_type |
( |
GTypeModule * |
module) | |
|
|
static |
Definition at line 50 of file ev-properties-main.c.
52 const GTypeInfo info = {
53 sizeof (GObjectClass),
55 (GBaseFinalizeFunc) NULL,
56 (GClassInitFunc) NULL,
61 (GInstanceInitFunc) NULL
63 const GInterfaceInfo property_page_provider_iface_info = {
69 epp_type = g_type_module_register_type (module, G_TYPE_OBJECT,
72 g_type_module_add_interface (module,
74 NAUTILUS_TYPE_PROPERTY_PAGE_PROVIDER,
75 &property_page_provider_iface_info);
void nautilus_module_initialize |
( |
GTypeModule * |
module) | |
|
void nautilus_module_list_types |
( |
const GType ** |
types, |
|
|
int * |
num_types |
|
) |
| |
Definition at line 153 of file ev-properties-main.c.
156 static GType type_list[1];
160 *num_types = G_N_ELEMENTS (type_list);
void nautilus_module_shutdown |
( |
void |
) | |
|
static void property_page_provider_iface_init |
( |
NautilusPropertyPageProviderIface * |
iface) | |
|
|
static |