| GNOME Scan UI Reference Manual | ||||
|---|---|---|---|---|
GnomeScanOptionWidget;
GnomeScanContext* gnome_scan_option_widget_get_context
(GnomeScanOptionWidget *widget);
void gnome_scan_option_widget_show_label (GnomeScanOptionWidget *widget);
void gnome_scan_option_widget_hide_label (GnomeScanOptionWidget *widget);
void gnome_scan_option_widget_set_label (GnomeScanOptionWidget *widget,
const gchar *text);
void gnome_scan_option_widget_pack_child (GnomeScanOptionWidget *widget,
GtkWidget *child,
gboolean expand,
gboolean fill);
typedef struct {
GtkHBox parent;
GnomeScanContext *context;
GtkWidget *label;
GtkWidget *child;
} GnomeScanOptionWidget;
GnomeScanContext* gnome_scan_option_widget_get_context
(GnomeScanOptionWidget *widget);
Return the GnomeScanContext the widget is connected to.
widget : |
a GnomeScanOptionWidget |
| Returns : | a GnomeScanContext |
void gnome_scan_option_widget_show_label (GnomeScanOptionWidget *widget);
Flag the label to be displayed.
widget : |
a GnomeScanOptionWidget |
void gnome_scan_option_widget_hide_label (GnomeScanOptionWidget *widget);
Reverse the effect of gnome_scan_option_widget_hide_label().
widget : |
a GnomeScanOptionWidget |
void gnome_scan_option_widget_set_label (GnomeScanOptionWidget *widget, const gchar *text);
Define a label for the option widget. The label must not contain any pango markup.
widget : |
a GnomeScanOptionWidget |
text : |
a text |
void gnome_scan_option_widget_pack_child (GnomeScanOptionWidget *widget, GtkWidget *child, gboolean expand, gboolean fill);
Pack child aside from the label.
widget : |
a GnomeScanOptionWidget |
child : |
a GtkWidget |
expand : |
wether the child widget should expand |
fill : |
wether the child widget should fill the allocated space |