Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-properties-license.h File Reference
#include <gtk/gtk.h>
#include <evince-document.h>
+ Include dependency graph for ev-properties-license.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EV_TYPE_PROPERTIES_LICENSE   (ev_properties_license_get_type())
 
#define EV_PROPERTIES_LICENSE(object)   (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PROPERTIES_LICENSE, EvPropertiesLicense))
 
#define EV_PROPERTIES_LICENSE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_PROPERTIES_LICENSE, EvPropertiesLicenseClass))
 
#define EV_IS_PROPERTIES_LICENSE(object)   (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PROPERTIES_LICENSE))
 
#define EV_IS_PROPERTIES_LICENSE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_PROPERTIES_LICENSE))
 
#define EV_PROPERTIES_LICENSE_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_PROPERTIES_LICENSE, EvPropertiesLicenseClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvPropertiesLicense 
EvPropertiesLicense
 
typedef struct
_EvPropertiesLicenseClass 
EvPropertiesLicenseClass
 
typedef struct
_EvPropertiesLicensePrivate 
EvPropertiesLicensePrivate
 

Functions

GType ev_properties_license_get_type (void) G_GNUC_CONST
 
GtkWidget * ev_properties_license_new (void)
 
void ev_properties_license_set_license (EvPropertiesLicense *properties_license, EvDocumentLicense *license)
 

Macro Definition Documentation

#define EV_IS_PROPERTIES_LICENSE (   object)    (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_PROPERTIES_LICENSE))

Definition at line 38 of file ev-properties-license.h.

#define EV_IS_PROPERTIES_LICENSE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_PROPERTIES_LICENSE))

Definition at line 39 of file ev-properties-license.h.

#define EV_PROPERTIES_LICENSE (   object)    (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_PROPERTIES_LICENSE, EvPropertiesLicense))

Definition at line 36 of file ev-properties-license.h.

#define EV_PROPERTIES_LICENSE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_PROPERTIES_LICENSE, EvPropertiesLicenseClass))

Definition at line 37 of file ev-properties-license.h.

#define EV_PROPERTIES_LICENSE_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_PROPERTIES_LICENSE, EvPropertiesLicenseClass))

Definition at line 40 of file ev-properties-license.h.

#define EV_TYPE_PROPERTIES_LICENSE   (ev_properties_license_get_type())

Definition at line 35 of file ev-properties-license.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvPropertiesLicense EvPropertiesLicense

Definition at line 31 of file ev-properties-license.h.

typedef struct _EvPropertiesLicensePrivate EvPropertiesLicensePrivate

Definition at line 33 of file ev-properties-license.h.

Function Documentation

GType ev_properties_license_get_type ( void  )
GtkWidget* ev_properties_license_new ( void  )

Definition at line 159 of file ev-properties-license.c.

160 {
161  EvPropertiesLicense *properties_license;
162 
163  properties_license = g_object_new (EV_TYPE_PROPERTIES_LICENSE,
164  "orientation", GTK_ORIENTATION_VERTICAL,
165  NULL);
166 
167  return GTK_WIDGET (properties_license);
168 }

+ Here is the caller graph for this function:

void ev_properties_license_set_license ( EvPropertiesLicense properties_license,
EvDocumentLicense license 
)

Definition at line 125 of file ev-properties-license.c.

127 {
128  const gchar *text = ev_document_license_get_text (license);
129  const gchar *uri = ev_document_license_get_uri (license);
130  const gchar *web_statement = ev_document_license_get_web_statement (license);
131 
132  if (text) {
134  _("Usage terms"),
135  get_license_text_widget (license));
136  }
137 
138  if (uri) {
140  _("Text License"),
141  get_license_uri_widget (uri));
142  }
143 
144  if (web_statement) {
146  _("Further Information"),
147  get_license_uri_widget (web_statement));
148  }
149 }

+ Here is the caller graph for this function: