/* * 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")); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_gnome_href_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_string (HRefURL, _("URL:"), _("The URL to display when the button is clicked")); property_add_text (HRefLabel, _("Label:"), _("The text to display in the button"), 2); property_add_bool (FocusOnClick, _("Focus On Click:"), _("If the button grabs focus when it is clicked")); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_menu_item_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { #if 0 /* For now we don't support editing the menuitem properties in the property editor. The menu editor has to be used instead. */ property_add_text (Label, _("Label:"), _("The text to display"), 2); #endif }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_option_menu_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_text (Items, _("Items:"), _("The items in the option menu, one per line"), 5); property_add_int_range (Choice, _("Initial Choice:"), _("The index of the initially selected item"), 0, 10000, 1, 10, 1); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_combo_box_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_text (Items, _("Items:"), _("The items in the combo list, one per line"), 5); property_add_bool (AddTearoffs, _("Add Tearoffs:"), _("Whether dropdowns should have a tearoff menu item")); property_add_bool (FocusOnClick, _("Focus On Click:"), _("Whether the combo box grabs focus when it is clicked")); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_combo_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_bool (ValueInList, _("Value In List:"), _("If the value must be in the list")); property_add_bool (OKIfEmpty, _("OK If Empty:"), _("If an empty value is acceptable, when 'Value In List' is set")); property_add_bool (Case, _("Case Sensitive:"), _("If the searching is case sensitive")); property_add_bool (Arrows, _("Use Arrows:"), _("If arrows can be used to change the value")); property_add_bool (Always, _("Use Always:"), _("If arrows work even if the value is not in the list")); property_add_text (Items, _("Items:"), _("The items in the combo list, one per line"), 5); }
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_menu_tool_button_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { 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_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")); }
/* * 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); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_gnome_message_box_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_choice (MessageBoxType, _("Message Type:"), _("The type of the message box"), GbMessageBoxTypeChoices); property_add_text (Message, _("Message:"), _("The message to display"), 4); /* We don't allow setting of the title, so we pass NULL here. */ gb_window_create_standard_properties (widget, data, Title, NULL, Position, Modal, DefaultWidth, DefaultHeight, Shrink, Grow, AutoShrink, WMName, WMClass); property_add_bool (AutoClose, _("Auto Close:"), _("If the dialog closes when any button is clicked")); property_add_bool (HideOnClose, _("Hide on Close:"), _("If the dialog is hidden when it is closed, instead of being destroyed")); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_toggle_button_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_stock_item (StockButton, _("Stock Button:"), _("The stock button to use"), GTK_ICON_SIZE_BUTTON); property_add_text (Label, _("Label:"), _("The text to display"), 2); property_add_icon (Icon, _("Icon:"), _("The icon to display"), GTK_ICON_SIZE_BUTTON); property_add_choice (Relief, _("Button Relief:"), _("The relief style of the button"), GladeReliefChoices); property_add_bool (State, _("Initially On:"), _("If the toggle button is initially on")); property_add_bool (Inconsistent, _("Inconsistent:"), _("If the button is shown in an inconsistent state")); property_add_bool (FocusOnClick, _("Focus On Click:"), _("If the button grabs focus when it is clicked")); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_list_item_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_text (Label, _("Label:"), _("The text to display"), 2); }