ellipsize the dockable title if it is too wide.

2005-05-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c: ellipsize the dockable title if it
	is too wide.

	* app/widgets/gimpstrokeeditor.c: added mnemonic for the presets
	combo.
This commit is contained in:
Sven Neumann 2005-05-25 09:45:06 +00:00 committed by Sven Neumann
parent 6ada399543
commit 8f141bcb08
3 changed files with 18 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2005-05-25 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdockable.c: ellipsize the dockable title if it
is too wide.
* app/widgets/gimpstrokeeditor.c: added mnemonic for the presets
combo.
2005-05-25 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptoolbox-dnd.c: implemented dropping of pixbufs.

View File

@ -356,6 +356,10 @@ gimp_dockable_size_allocate (GtkWidget *widget,
gdk_window_move_resize (dockable->title_window,
area.x, area.y, area.width, area.height);
if (dockable->title_layout)
pango_layout_set_width (dockable->title_layout,
PANGO_SCALE * area.width);
}
}
@ -515,8 +519,12 @@ gimp_dockable_expose_event (GtkWidget *widget,
dockable->title_layout = gtk_widget_create_pango_layout (widget,
title);
g_free (title);
pango_layout_set_width (dockable->title_layout,
PANGO_SCALE * title_area.width);
pango_layout_set_ellipsize (dockable->title_layout,
PANGO_ELLIPSIZE_END);
}
pango_layout_get_pixel_size (dockable->title_layout,

View File

@ -288,7 +288,7 @@ gimp_stroke_editor_constructor (GType type,
box = gimp_enum_combo_box_new (GIMP_TYPE_DASH_PRESET);
gimp_int_combo_box_set_active (GIMP_INT_COMBO_BOX (box), GIMP_DASH_CUSTOM);
gimp_table_attach_aligned (GTK_TABLE (table), 0, row++,
_("Dash preset:"), 0.0, 0.5,
_("Dash _preset:"), 0.0, 0.5,
box, 2, FALSE);
cell = g_object_new (GIMP_TYPE_CELL_RENDERER_DASHES,