Re: bolding text



No..
Like so

gchar *translated = N_("My translated stuff");
gchar *concated =
g_strconcat("<b>",translated,"</b>");
then continue with the label stuff.


--- mdew <mdew orcon net nz> wrote:
On Sun, 2002-04-28 at 00:48, Muhri wrote:

yeah its been a while since i last tried...
something like this...

get_and_add_header_nolock (table, &row, hash,
HEADER_FROM, _("<b>Bold
text </b>"), ' ', max_header_width);
                      
gtk_label_set_use_markup (GTK_LABEL
(get_and_add_header_nolock), TRUE);

is that what you mean? 

although inefficent IMHO, you can always get
whatever
is between _() in a gchar, and then concatenate
<b>
and </b> at the front and end of it then pass it.

Maher

--- mdew <mdew orcon net nz> wrote:
Currently Ive been playing with
gtk_label_set_use_markup to set bold
text within a label...

  w = gtk_label_new ( _("<b>This is Bold</b>") );
  gtk_label_set_use_markup (GTK_LABEL (w), TRUE);

Im trying to add bold text used within another
function, is
gtk_label_set_use_markup only suitable for
labels
only? is there another
way to bold text?

My Problem Below..

get_and_add_header_nolock (GtkWidget   * table,
                           int         * row,
                           GHashTable  *
run_hash,
                           const char  * header,
                           const char  *
header_i18n,
                           char         
delimiter,
                           int          
max_len)

                  get_and_add_header_nolock (table, &row, hash,
HEADER_FROM, _("I Want
this text in Bold"), ' ', max_header_width);


-- 
ph33r!
Linux mdew 2.4.19-pre7-xfs-aa #4 Fri Apr 26
12:14:19
NZST 2002 i686
unknown
GPG Key: http://mdew.orcon.net.nz/gpg
  


ATTACHMENT part 2 application/pgp-signature
name=signature.asc



__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org


http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- 
ph33r!
Linux mdew 2.4.19-pre8-xfs-aa #2 Sat May 4 23:16:25
NZST 2002 i686
unknown
GPG Key: http://mdew.orcon.net.nz/gpg


ATTACHMENT part 2 application/pgp-signature
name=signature.asc



__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]