Try this:
GtkWidget *button = gtk_button_new ();
GtkWidget *label = gtk_label_new ("<s>Hello</s>");
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
gtk_container_add (GTK_CONTAINER (button), label);
GtkWidget *button = gtk_button_new ();
GtkWidget *label = gtk_label_new ("<s>Hello</s>");
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
gtk_container_add (GTK_CONTAINER (button), label);
On Mon, Apr 11, 2016 at 4:50 PM Igor Korot <ikorot01@xxxxxxxxx> wrote:
Hi, Allin,
On Mon, Apr 11, 2016 at 4:20 PM, Allin Cottrell <cottrell@xxxxxxx> wrote:
> On Mon, 11 Apr 2016, Igor Korot wrote:
>
>> Hi, ALL,
>> If I want to create a button with the underlined font - will I be able
>> to do that?
>> Or if the font will have a strikethrough option?
>
>
> http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
Yes, I know about this page.
The trouble is - it looks like that this is describing how to do a
basic label (or
static text) format change.
Now if I want to have a button (push button - like an "OK" button in the dialog)
and want to have this "OK" text as strikethrough - will this be supported.
Either with GTK+2 or GTK+3.
Thank you.
>
> Allin Cottrell
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list