/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_gnome_icon_entry_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_string (Title, _("Title:"), _("The title of the file selection dialog")); property_add_string (HistoryID, _("History ID:"), _("The ID to save the history entries under")); property_add_int_range (MaxSaved, _("Max Saved:"), _("The maximum number of history entries saved"), 0, 10000, 1, 10, 1); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_custom_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_string (CreationFunction, _("Creation Function:"), _("The function which creates the widget")); property_add_string (String1, _("String1:"), _("The first string argument to pass to the function")); property_add_string (String2, _("String2:"), _("The second string argument to pass to the function")); property_add_int (Int1, _("Int1:"), _("The first integer argument to pass to the function")); property_add_int (Int2, _("Int2:"), _("The second integer argument to pass to the function")); }
/* * 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_bonobo_control_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { Bonobo_PropertyBag pb = control_get_pb (widget); char *moniker = gtk_object_get_data (GTK_OBJECT (widget), Moniker); GList *key_list, *names; g_assert (moniker); if (!pb) return; key_list = bonobo_pbclient_get_keys (pb, NULL); for (names = key_list; names; names = names->next) { CORBA_TypeCode tc; char *title, *doc; char *prop = create_prop_name (moniker, names->data); tc = bonobo_pbclient_get_type (pb, names->data, NULL); title = bonobo_pbclient_get_doc_title (pb, names->data, NULL); doc = bonobo_pbclient_get_doc (pb, names->data, NULL); switch (tc->kind) { case CORBA_tk_boolean: property_add_bool (prop, title, doc); break; case CORBA_tk_string: property_add_string (prop, title, doc); break; case CORBA_tk_short: case CORBA_tk_ushort: /* FIXME: _int_range() ? */ property_add_int (prop, title, doc); break; case CORBA_tk_double: case CORBA_tk_float: property_add_float (prop, title, doc); break; case CORBA_tk_ulong: case CORBA_tk_long: property_add_int (prop, title, doc); break; default: g_warning ("Unhandled type %d", tc->kind); break; } g_free (prop); CORBA_free (title); CORBA_free (doc); } bonobo_pbclient_free_keys (key_list); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_gnome_color_picker_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_bool (Dither, _("Dither:"), _("If the sample should use dithering to be more accurate")); property_add_bool (UseAlpha, _("Use Alpha:"), _("If the alpha channel should be used")); property_add_string (Title, _("Title:"), _("The title of the color selection dialog")); 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_file_chooser_button_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_string (Title, _("Title:"), _("The window title of the file chooser dialog")); property_add_choice (Action, _("Action:"), _("The type of file operation being performed"), GbActionChoices); property_add_bool (LocalOnly, _("Local Only:"), _("Whether the selected files should be limited to local files")); property_add_bool (ShowHidden, _("Show Hidden:"), _("Whether the hidden files and folders should be displayed")); property_add_bool (Confirm, _("Confirm:"), _("Whether a confirmation dialog will be displayed if a file will be overwritten")); property_add_int_range (WidthChars, _("Width in Chars:"), _("The width of the button in characters"), -1, 1000, 1, 10, 1); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_gnome_druid_page_standard_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_string (Title, _("Title:"), _("The title of the page")); property_add_color (TitleColor, _("Title Color:"), _("The color of the title text")); property_add_color (ContentsBackgroundColor, _("Contents Back. Color:"), _("The background color around the title")); property_add_color (BackgroundColor, _("Back. Color:"), _("The background color of the page")); property_add_color (LogoBackgroundColor, _("Logo Back. Color:"), _("The background color around the logo")); property_add_filename (LogoImage, _("Logo Image:"), _("The logo to display in the top-right of the page")); property_add_filename (TopWatermark, _("Top Watermark:"), _("The image to display along the top of the page")); }
void gb_window_create_standard_properties (GtkWidget * widget, GbWidgetCreateArgData * data, gchar *title_p, gchar *type_p, gchar *position_p, gchar *modal_p, gchar *default_width_p, gchar *default_height_p, gchar *shrink_p, gchar *grow_p, gchar *auto_shrink_p, gchar *wmname_p, gchar *wmclass_p, gchar *resizable_p, gchar *destroy_with_parent_p, gchar *icon_p) { if (title_p) property_add_string (title_p, _("Title:"), _("The title of the window")); if (type_p) property_add_choice (type_p, _("Type:"), _("The type of the window"), GbTypeChoices); if (position_p) property_add_choice (position_p, _("Position:"), _("The initial position of the window"), GbPositionChoices); if (modal_p) property_add_bool (modal_p, _("Modal:"), _("If the window is modal")); if (default_width_p && default_height_p) { property_add_optional_int_range (default_width_p, _("Default Width:"), _("The default width of the window"), 0, 10000, 1, 10, 1, on_toggle_default_width); property_add_optional_int_range (default_height_p, _("Default Height:"), _("The default height of the window"), 0, 10000, 1, 10, 1, on_toggle_default_height); } if (resizable_p) property_add_bool (resizable_p, _("Resizable:"), _("If the window can be resized")); #if 0 /* These are deprecated. */ if (shrink_p && grow_p) { property_add_bool (shrink_p, _("Shrink:"), _("If the window can be shrunk")); property_add_bool (grow_p, _("Grow:"), _("If the window can be enlarged")); } #endif #if 0 /* These aren't necessary, and have been used incorrectly for ages. */ if (wmname_p) property_add_string (wmname_p, _("WM Name:"), _("The name to pass to the window manager")); if (wmclass_p) property_add_string (wmclass_p, _("WM Class:"), _("The class name to pass to the window manager")); #endif if (destroy_with_parent_p) property_add_bool (destroy_with_parent_p, _("Auto-Destroy:"), _("If the window is destroyed when its transient parent is destroyed")); if (icon_p) property_add_filename (icon_p, _("Icon:"), _("The icon for this window")); }
/* * Creates the components needed to edit the extra properties of this widget. */ static void gb_font_selection_create_properties (GtkWidget * widget, GbWidgetCreateArgData * data) { property_add_string (PreviewText, _("Preview Text:"), _("The preview text to display")); }