help how to change font for a button label ?

View: New views
2 Messages — Rating Filter:   Alert me  

help how to change font for a button label ?

by AngeloP :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Any can help me how change font for a label in a gtkbutton ?

I've tryed set

$font = new PangoFontDescription ("Times New Roman Italic 20");
        $this->button->modify_font($font);

but this has not effect..


Thanks

I've found it

by AngeloP :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

         $this->button = new GtkButton("A");
        $butlabael=$this->button->get_child();
        $font = new PangoFontDescription ("Arial Bold 12");
        $butlababel->modify_font($font);


AngeloP wrote:
Any can help me how change font for a label in a gtkbutton ?

I've tryed set

$font = new PangoFontDescription ("Times New Roman Italic 20");
        $this->button->modify_font($font);

but this has not effect..


Thanks