#include <config.h>
#include <gtk/gtk.h>
#include "ev-progress-message-area.h"
Go to the source code of this file.
|
static void | ev_progress_message_area_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
|
static void | ev_progress_message_area_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
|
static void | ev_progress_message_area_class_init (EvProgressMessageAreaClass *class) |
|
static void | ev_progress_message_area_init (EvProgressMessageArea *area) |
|
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) |
|
Definition at line 53 of file ev-progress-message-area.c.
55 GObjectClass *gobject_class = G_OBJECT_CLASS (
class);
60 g_object_class_install_property (gobject_class,
62 g_param_spec_string (
"status",
64 "The status text of the progress area",
67 G_PARAM_STATIC_STRINGS));
68 g_object_class_install_property (gobject_class,
70 g_param_spec_double (
"fraction",
72 "The fraction of total work that has been completed",
75 G_PARAM_STATIC_STRINGS));
static void ev_progress_message_area_get_property |
( |
GObject * |
object, |
|
|
guint |
prop_id, |
|
|
GValue * |
value, |
|
|
GParamSpec * |
pspec |
|
) |
| |
|
static |
Definition at line 130 of file ev-progress-message-area.c.
139 g_value_set_string (value, gtk_label_get_label (GTK_LABEL (area->
priv->
label)));
144 fraction = gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (area->
priv->
progress_bar));
145 g_value_set_double (value, fraction);
149 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object, prop_id, pspec);
Definition at line 81 of file ev-progress-message-area.c.
90 vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
93 gtk_label_set_use_markup (GTK_LABEL (area->
priv->
label),
TRUE);
94 gtk_label_set_ellipsize (GTK_LABEL (area->
priv->
label),
96 gtk_misc_set_alignment (GTK_MISC (area->
priv->
label), 0.0, 0.5);
105 gtk_box_pack_start (GTK_BOX (contents), vbox,
TRUE,
TRUE, 0);
106 gtk_widget_show (vbox);
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.
162 "message-type", GTK_MESSAGE_OTHER,
165 if (first_button_text) {
168 va_start (args, first_button_text);
static void ev_progress_message_area_set_property |
( |
GObject * |
object, |
|
|
guint |
prop_id, |
|
|
const GValue * |
value, |
|
|
GParamSpec * |
pspec |
|
) |
| |
|
static |