Commit 8f141bcb authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent 6ada3995
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.
......
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment