GnomeScanOptionWidget

GnomeScanOptionWidget — A parent widget for configuration widget

Synopsis




                    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);

Description

GnomeScanOptionWidget simply show a label and a widget to configure a context.

Details

GnomeScanOptionWidget

typedef struct {
  GtkHBox	       	parent;

  GnomeScanContext	*context;
  GtkWidget		*label;
  GtkWidget		*child;
} GnomeScanOptionWidget;


gnome_scan_option_widget_get_context ()

GnomeScanContext*   gnome_scan_option_widget_get_context
                                                        (GnomeScanOptionWidget *widget);

Return the GnomeScanContext the widget is connected to.

widget : a GnomeScanOptionWidget
Returns : a GnomeScanContext

gnome_scan_option_widget_show_label ()

void                gnome_scan_option_widget_show_label (GnomeScanOptionWidget *widget);

Flag the label to be displayed.

widget : a GnomeScanOptionWidget

gnome_scan_option_widget_hide_label ()

void                gnome_scan_option_widget_hide_label (GnomeScanOptionWidget *widget);

Reverse the effect of gnome_scan_option_widget_hide_label().

widget : a GnomeScanOptionWidget

gnome_scan_option_widget_set_label ()

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

gnome_scan_option_widget_pack_child ()

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