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-progress-message-area.h File Reference
#include <gtk/gtk.h>
#include "ev-message-area.h"
+ Include dependency graph for ev-progress-message-area.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvProgressMessageArea
 
struct  _EvProgressMessageAreaClass
 

Macros

#define EV_TYPE_PROGRESS_MESSAGE_AREA   (ev_progress_message_area_get_type ())
 
#define EV_PROGRESS_MESSAGE_AREA(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PROGRESS_MESSAGE_AREA, EvProgressMessageArea))
 
#define EV_PROGRESS_MESSAGE_AREA_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PROGRESS_MESSAGE_AREA, EvProgressMessageAreaClass))
 
#define EV_IS_PROGRESS_MESSAGE_AREA(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PROGRESS_MESSAGE_AREA))
 
#define EV_IS_PROGRESS_MESSAGE_AREA_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_PROGRESS_MESSAGE_AREA))
 
#define EV_PROGRESS_MESSAGE_AREA_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_PROGRESS_MESSAGE_AREA, EvProgressMessageAreaClass))
 

Typedefs

typedef struct
_EvProgressMessageArea 
EvProgressMessageArea
 
typedef struct
_EvProgressMessageAreaClass 
EvProgressMessageAreaClass
 
typedef struct
_EvProgressMessageAreaPrivate 
EvProgressMessageAreaPrivate
 

Functions

GType ev_progress_message_area_get_type (void) G_GNUC_CONST
 
GtkWidget * ev_progress_message_area_new (const gchar *stock_id, const gchar *text, const gchar *first_button_text,...)
 
void ev_progress_message_area_set_status (EvProgressMessageArea *area, const gchar *str)
 
void ev_progress_message_area_set_fraction (EvProgressMessageArea *area, gdouble fraction)
 

Macro Definition Documentation

#define EV_IS_PROGRESS_MESSAGE_AREA (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PROGRESS_MESSAGE_AREA))

Definition at line 33 of file ev-progress-message-area.h.

#define EV_IS_PROGRESS_MESSAGE_AREA_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_PROGRESS_MESSAGE_AREA))

Definition at line 34 of file ev-progress-message-area.h.

#define EV_PROGRESS_MESSAGE_AREA (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PROGRESS_MESSAGE_AREA, EvProgressMessageArea))

Definition at line 31 of file ev-progress-message-area.h.

#define EV_PROGRESS_MESSAGE_AREA_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PROGRESS_MESSAGE_AREA, EvProgressMessageAreaClass))

Definition at line 32 of file ev-progress-message-area.h.

#define EV_PROGRESS_MESSAGE_AREA_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_PROGRESS_MESSAGE_AREA, EvProgressMessageAreaClass))

Definition at line 35 of file ev-progress-message-area.h.

#define EV_TYPE_PROGRESS_MESSAGE_AREA   (ev_progress_message_area_get_type ())

Definition at line 30 of file ev-progress-message-area.h.

Typedef Documentation

Definition at line 37 of file ev-progress-message-area.h.

Function Documentation

GType ev_progress_message_area_get_type ( void  )
GtkWidget* ev_progress_message_area_new ( const gchar *  stock_id,
const gchar *  text,
const gchar *  first_button_text,
  ... 
)

Definition at line 154 of file ev-progress-message-area.c.

158 {
159  GtkWidget *widget;
160 
161  widget = g_object_new (EV_TYPE_PROGRESS_MESSAGE_AREA,
162  "message-type", GTK_MESSAGE_OTHER,
163  "text", text,
164  NULL);
165  if (first_button_text) {
166  va_list args;
167 
168  va_start (args, first_button_text);
170  first_button_text,
171  args);
172  va_end (args);
173  }
174 
176 
177  return widget;
178 }

+ Here is the caller graph for this function:

void ev_progress_message_area_set_fraction ( EvProgressMessageArea area,
gdouble  fraction 
)

Definition at line 192 of file ev-progress-message-area.c.

194 {
195  g_return_if_fail (EV_IS_PROGRESS_MESSAGE_AREA (area));
196 
197  gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (area->priv->progress_bar),
198  fraction);
199  g_object_notify (G_OBJECT (area), "fraction");
200 }

+ Here is the caller graph for this function:

void ev_progress_message_area_set_status ( EvProgressMessageArea area,
const gchar *  str 
)

Definition at line 181 of file ev-progress-message-area.c.

183 {
184  g_return_if_fail (EV_IS_PROGRESS_MESSAGE_AREA (area));
185 
186  gtk_label_set_text (GTK_LABEL (area->priv->label), str);
187 
188  g_object_notify (G_OBJECT (area), "status");
189 }

+ Here is the caller graph for this function: