/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_radio_tool_button_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { GtkWidget *combo; property_add_stock_item (StockButton, _("Stock Button:"), _("The stock button to use"), GTK_ICON_SIZE_LARGE_TOOLBAR); property_add_text (Label, _("Label:"), _("The text to display"), 2); property_add_icon (Icon, _("Icon:"), _("The icon to display"), GTK_ICON_SIZE_LARGE_TOOLBAR); property_add_combo (Group, _("Group:"), _("The radio tool button group (the default is all radio tool buttons in the toolbar)"), NULL); combo = property_get_value_widget (Group); gtk_editable_set_editable (GTK_EDITABLE (GTK_COMBO (combo)->entry), FALSE); property_add_bool (Active, _("Initially On:"), _("If the radio button is initially on")); property_add_bool (VisibleHorz, _("Show Horizontal:"), _("If the item is visible when the toolbar is horizontal")); property_add_bool (VisibleVert, _("Show Vertical:"), _("If the item is visible when the toolbar is vertical")); property_add_bool (IsImportant, _("Is Important:"), _("If the item's text should be shown when the toolbar's mode is GTK_TOOLBAR_BOTH_HORIZ")); }
void gb_label_create_standard_properties (GtkWidget * widget, GbWidgetCreateArgData * data, const char *label_p, const char *use_underline_p, const char *use_markup_p, const char *justify_p, const char *wrap_p, const char *selectable_p, const char *xalign_p, const char *yalign_p, const char *xpad_p, const char *ypad_p, const char *focus_target_p) { GtkWidget *combo; property_add_text (label_p, _("Label:"), _("The text to display"), 2); property_add_bool (use_underline_p, _("Use Underline:"), _("If the text includes an underlined accelerator character")); property_add_bool (use_markup_p, _("Use Markup:"), _("If the text includes pango markup")); property_add_choice (justify_p, _("Justify:"), _("The justification of the lines of the label"), GbJustifyChoices); property_add_bool (wrap_p, _("Wrap Text:"), _("If the text is wrapped to fit within the width of the label")); property_add_bool (selectable_p, _("Selectable:"), _("If the label text can be selected with the mouse")); property_add_float_range (xalign_p, _("X Align:"), _("The horizontal alignment of the entire label"), 0, 1, 0.01, 0.1, 0.01, 2); property_add_float_range (yalign_p, _("Y Align:"), _("The vertical alignment of the entire label"), 0, 1, 0.01, 0.1, 0.01, 2); property_add_int_range (xpad_p, _("X Pad:"), _("The horizontal padding"), 0, 1000, 1, 10, 1); property_add_int_range (ypad_p, _("Y Pad:"), _("The vertical padding"), 0, 1000, 1, 10, 1); property_add_combo (focus_target_p, _("Focus Target:"), _("The widget to set the keyboard focus to when the underlined accelerator key is used"), NULL); combo = property_get_value_widget (focus_target_p); gtk_editable_set_editable (GTK_EDITABLE (GTK_COMBO (combo)->entry), FALSE); gtk_combo_set_value_in_list (GTK_COMBO (combo), TRUE, TRUE); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_radio_button_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_text (Label, _("Label:"), _("The text to display"), 2); #ifdef USE_GNOME gb_button_create_child_icon_property (widget, data, Icon); #else property_add_filename (Icon, _("Icon:"), _("The pixmap filename")); #endif property_add_bool (State, _("Initially On:"), _("If the radio button is initially on")); property_add_bool (Indicator, _("Indicator:"), _("If the indicator is always drawn")); property_add_combo (Group, _("Group:"), _("The radio button group (the default is all radio buttons with the same parent)"), NULL); }