mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
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:
parent
6ada399543
commit
8f141bcb08
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue