RE: HIG Dialog widget proposal
- From: Tommi Komulainen <tommi komulainen nokia com>
- To: gtk-devel-list gnome org
- Subject: RE: HIG Dialog widget proposal
- Date: Wed, 30 Jun 2004 12:29:45 +0300
On Wed, 2004-06-30 at 06:19, ext Owen Taylor wrote:
> > > Two other possibilities are:
> > >
> > > - We should implicitly add a <b></b> around
> > > the main text in the case where the main text
> > > has markup.
> >
> > I think this is slightly messy. What happens if the developer doesn't want bold text,
> > but instead, just larger text? They have no choice then.
> >
> > Perhaps the solution is the only allow tags like <u> and <i>? That way the developer
> > can place emphasis on text still, but the actual sizing and boldness of the text is
> > limited to the HIG?
>
> Limiting to only a certain set of tags would be tricky to implement.
> And anyways, that's the implicit effect of putting the default
> attributes on a span surrounding all the user implied markup.
I've implemented a HigAlert dialog in galeon
(http://cvs.gnome.org/viewcvs/galeon/utils/hig-alert.c) and I figured
I'd rather not add implicit markup, but rather set the default font
attributes for the primary label instead. That way it should be pretty
transparent.
Basically I'm doing the following:
size = pango_font_description_get_size (widget->style->font_desc);
font_desc = pango_font_description_from_string ("bold");
pango_font_description_set_size (font_desc, size * PANGO_SCALE_LARGE);
gtk_widget_modify_font (widget, font_desc);
I wonder if there's something inherently bad with the above. It works,
though :)
--
Tommi Komulainen <tommi komulainen nokia com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]