mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 14:23:33 +00:00
added new function gimp_size_entry_get_help_widget() to make it possible
2003-10-15 Sven Neumann <sven@gimp.org> * libgimpwidgets/gimpsizeentry.[ch]: added new function gimp_size_entry_get_help_widget() to make it possible to set tooltips on a GimpSizeEntry. * app/widgets/gimppropwidgets.c (gimp_prop_size_entry_new) (gimp_prop_coordinates_connect): set tooltips from property blurbs. * app/core/gimpgrid.c * app/core/gimptemplate.c * app/gui/preferences-dialog.c: minor string changes.
This commit is contained in:
parent
981e947e64
commit
2806c6b2d5
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
2003-10-15 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimpsizeentry.[ch]: added new function
|
||||
gimp_size_entry_get_help_widget() to make it possible to set
|
||||
tooltips on a GimpSizeEntry.
|
||||
|
||||
* app/widgets/gimppropwidgets.c (gimp_prop_size_entry_new)
|
||||
(gimp_prop_coordinates_connect): set tooltips from property blurbs.
|
||||
|
||||
* app/core/gimpgrid.c
|
||||
* app/core/gimptemplate.c
|
||||
* app/gui/preferences-dialog.c: minor string changes.
|
||||
|
||||
2003-10-15 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimptemplateeditor.c: added a hbox to align the
|
||||
|
|
|
@ -125,12 +125,12 @@ gimp_grid_class_init (GimpGridClass *klass)
|
|||
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_XSPACING,
|
||||
"xspacing",
|
||||
N_("Horizontal spacing of grid lines"),
|
||||
N_("Horizontal spacing of grid lines."),
|
||||
1.0, GIMP_MAX_IMAGE_SIZE, 10.0,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_YSPACING,
|
||||
"yspacing",
|
||||
N_("Vertical spacing of grid lines"),
|
||||
N_("Vertical spacing of grid lines."),
|
||||
1.0, GIMP_MAX_IMAGE_SIZE, 10.0,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_SPACING_UNIT,
|
||||
|
@ -139,15 +139,15 @@ gimp_grid_class_init (GimpGridClass *klass)
|
|||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_XOFFSET,
|
||||
"xoffset",
|
||||
N_("Horizontal offset of the first grid line, "
|
||||
"this may be a negative number"),
|
||||
N_("Horizontal offset of the first grid "
|
||||
"line; this may be a negative number."),
|
||||
- GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE, 0.0,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_YOFFSET,
|
||||
"yoffset",
|
||||
N_("Vertical offset of the first grid line, "
|
||||
"this may be a negative number"),
|
||||
N_("Vertical offset of the first grid "
|
||||
"line; this may be a negative number."),
|
||||
- GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE, 0.0,
|
||||
0);
|
||||
|
@ -157,18 +157,18 @@ gimp_grid_class_init (GimpGridClass *klass)
|
|||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_COLOR (object_class, PROP_FGCOLOR,
|
||||
"fgcolor",
|
||||
N_("The foreground color of the grid"),
|
||||
N_("The foreground color of the grid."),
|
||||
&black,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_COLOR (object_class, PROP_BGCOLOR,
|
||||
"bgcolor",
|
||||
N_("The background color of the grid, "
|
||||
"only used in double dashed line style"),
|
||||
N_("The background color of the grid; "
|
||||
"only used in double dashed line style."),
|
||||
&white,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_STYLE,
|
||||
"style",
|
||||
N_("Line style used for the grid"),
|
||||
N_("Line style used for the grid."),
|
||||
GIMP_TYPE_GRID_STYLE,
|
||||
GIMP_GRID_INTERSECTIONS,
|
||||
0);
|
||||
|
|
|
@ -142,34 +142,34 @@ gimp_template_class_init (GimpTemplateClass *klass)
|
|||
viewable_class->default_stock_id = "gimp-template";
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_WIDTH, "width",
|
||||
"The image width in pixels.",
|
||||
NULL,
|
||||
1, GIMP_MAX_IMAGE_SIZE, 256,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_HEIGHT, "height",
|
||||
"The image height in pixels.",
|
||||
NULL,
|
||||
1, GIMP_MAX_IMAGE_SIZE, 256,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT, "unit",
|
||||
"The unit used for coordinate display "
|
||||
"when not in dot-for-dot mode.",
|
||||
N_("The unit used for coordinate display "
|
||||
"when not in dot-for-dot mode."),
|
||||
FALSE, FALSE, GIMP_UNIT_INCH,
|
||||
0);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_XRESOLUTION,
|
||||
"xresolution",
|
||||
"The horizonal resolution in dpi.",
|
||||
N_("The horizonal image resolution."),
|
||||
GIMP_MIN_RESOLUTION, GIMP_MAX_RESOLUTION,
|
||||
72.0,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_YRESOLUTION,
|
||||
"yresolution",
|
||||
"The vertical resolution in dpi.",
|
||||
N_("The vertical image resolution."),
|
||||
GIMP_MIN_RESOLUTION, GIMP_MAX_RESOLUTION,
|
||||
72.0,
|
||||
0);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_RESOLUTION_UNIT,
|
||||
"resolution-unit",
|
||||
"The unit used to display resolutions.",
|
||||
NULL,
|
||||
FALSE, FALSE, GIMP_UNIT_INCH,
|
||||
0);
|
||||
|
||||
|
|
|
@ -1004,7 +1004,7 @@ prefs_dialog_new (Gimp *gimp,
|
|||
/***************/
|
||||
vbox = prefs_notebook_append_page (gimp,
|
||||
GTK_NOTEBOOK (notebook),
|
||||
_("Defaults for New Images"),
|
||||
_("New Image"),
|
||||
"new-image.png",
|
||||
GTK_TREE_STORE (tree),
|
||||
_("New Image"),
|
||||
|
|
|
@ -1004,7 +1004,7 @@ prefs_dialog_new (Gimp *gimp,
|
|||
/***************/
|
||||
vbox = prefs_notebook_append_page (gimp,
|
||||
GTK_NOTEBOOK (notebook),
|
||||
_("Defaults for New Images"),
|
||||
_("New Image"),
|
||||
"new-image.png",
|
||||
GTK_TREE_STORE (tree),
|
||||
_("New Image"),
|
||||
|
|
|
@ -1707,6 +1707,15 @@ gimp_prop_size_entry_new (GObject *config,
|
|||
update_policy);
|
||||
gtk_table_set_col_spacing (GTK_TABLE (sizeentry), 1, 4);
|
||||
|
||||
set_param_spec (NULL,
|
||||
gimp_size_entry_get_help_widget (GIMP_SIZE_ENTRY (sizeentry),
|
||||
0),
|
||||
param_spec);
|
||||
|
||||
if (unit_param_spec)
|
||||
set_param_spec (NULL,
|
||||
GIMP_SIZE_ENTRY (sizeentry)->unitmenu, unit_param_spec);
|
||||
|
||||
switch (GIMP_SIZE_ENTRY (sizeentry)->update_policy)
|
||||
{
|
||||
case GIMP_SIZE_ENTRY_UPDATE_SIZE:
|
||||
|
@ -2009,6 +2018,19 @@ gimp_prop_coordinates_connect (GObject *config,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
set_param_spec (NULL,
|
||||
gimp_size_entry_get_help_widget (GIMP_SIZE_ENTRY (sizeentry),
|
||||
0),
|
||||
x_param_spec);
|
||||
set_param_spec (NULL,
|
||||
gimp_size_entry_get_help_widget (GIMP_SIZE_ENTRY (sizeentry),
|
||||
1),
|
||||
y_param_spec);
|
||||
|
||||
if (unit_param_spec)
|
||||
set_param_spec (NULL,
|
||||
GIMP_SIZE_ENTRY (sizeentry)->unitmenu, unit_param_spec);
|
||||
|
||||
switch (GIMP_SIZE_ENTRY (sizeentry)->update_policy)
|
||||
{
|
||||
case GIMP_SIZE_ENTRY_UPDATE_SIZE:
|
||||
|
@ -2787,10 +2809,13 @@ set_param_spec (GObject *object,
|
|||
GtkWidget *widget,
|
||||
GParamSpec *param_spec)
|
||||
{
|
||||
if (! param_spec_quark)
|
||||
param_spec_quark = g_quark_from_static_string ("gimp-config-param-spec");
|
||||
if (object)
|
||||
{
|
||||
if (! param_spec_quark)
|
||||
param_spec_quark = g_quark_from_static_string ("gimp-config-param-spec");
|
||||
|
||||
g_object_set_qdata (object, param_spec_quark, param_spec);
|
||||
g_object_set_qdata (object, param_spec_quark, param_spec);
|
||||
}
|
||||
|
||||
if (widget)
|
||||
{
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2003-10-15 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/libgimpwidgets-sections.txt
|
||||
* libgimpwidgets/tmpl/gimpsizeentry.sgml: added new function.
|
||||
|
||||
2003-10-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/app-docs.sgml
|
||||
|
|
|
@ -152,6 +152,7 @@ gimp_size_entry_get_unit
|
|||
gimp_size_entry_set_unit
|
||||
gimp_size_entry_set_pixel_digits
|
||||
gimp_size_entry_grab_focus
|
||||
gimp_size_entry_get_help_widget
|
||||
<SUBSECTION Standard>
|
||||
GIMP_SIZE_ENTRY
|
||||
GIMP_IS_SIZE_ENTRY
|
||||
|
|
|
@ -232,6 +232,16 @@ gimp_coordinates_new()
|
|||
@gse:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gimp_size_entry_get_help_widget ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@gse:
|
||||
@field:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### SIGNAL GimpSizeEntry::refval-changed ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -1707,6 +1707,15 @@ gimp_prop_size_entry_new (GObject *config,
|
|||
update_policy);
|
||||
gtk_table_set_col_spacing (GTK_TABLE (sizeentry), 1, 4);
|
||||
|
||||
set_param_spec (NULL,
|
||||
gimp_size_entry_get_help_widget (GIMP_SIZE_ENTRY (sizeentry),
|
||||
0),
|
||||
param_spec);
|
||||
|
||||
if (unit_param_spec)
|
||||
set_param_spec (NULL,
|
||||
GIMP_SIZE_ENTRY (sizeentry)->unitmenu, unit_param_spec);
|
||||
|
||||
switch (GIMP_SIZE_ENTRY (sizeentry)->update_policy)
|
||||
{
|
||||
case GIMP_SIZE_ENTRY_UPDATE_SIZE:
|
||||
|
@ -2009,6 +2018,19 @@ gimp_prop_coordinates_connect (GObject *config,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
set_param_spec (NULL,
|
||||
gimp_size_entry_get_help_widget (GIMP_SIZE_ENTRY (sizeentry),
|
||||
0),
|
||||
x_param_spec);
|
||||
set_param_spec (NULL,
|
||||
gimp_size_entry_get_help_widget (GIMP_SIZE_ENTRY (sizeentry),
|
||||
1),
|
||||
y_param_spec);
|
||||
|
||||
if (unit_param_spec)
|
||||
set_param_spec (NULL,
|
||||
GIMP_SIZE_ENTRY (sizeentry)->unitmenu, unit_param_spec);
|
||||
|
||||
switch (GIMP_SIZE_ENTRY (sizeentry)->update_policy)
|
||||
{
|
||||
case GIMP_SIZE_ENTRY_UPDATE_SIZE:
|
||||
|
@ -2787,10 +2809,13 @@ set_param_spec (GObject *object,
|
|||
GtkWidget *widget,
|
||||
GParamSpec *param_spec)
|
||||
{
|
||||
if (! param_spec_quark)
|
||||
param_spec_quark = g_quark_from_static_string ("gimp-config-param-spec");
|
||||
if (object)
|
||||
{
|
||||
if (! param_spec_quark)
|
||||
param_spec_quark = g_quark_from_static_string ("gimp-config-param-spec");
|
||||
|
||||
g_object_set_qdata (object, param_spec_quark, param_spec);
|
||||
g_object_set_qdata (object, param_spec_quark, param_spec);
|
||||
}
|
||||
|
||||
if (widget)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue