LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Gtk (https://www.linuxquestions.org/questions/programming-9/gtk-462287/)

kalleanka 07-09-2006 05:08 AM

Gtk
 
I started to use GTK and I must say i am impressed. I like it. The best is that if the documentation sucks the source is always there and thats the best documentation. Reminds me of MS argument against open sorce "but
there is no documentation".
And its portable, free and organized. What a fantastic job I must say.


The only thing I encountered so far is the pango conection. Its to much job to change the size of a text in a label for example. Maybe there is some functions I do not now of.

Personaly I think GTK will be used a lot more in the future.

jonaskoelker 07-09-2006 02:29 PM

If you haven't already, how about sending your praise to the authors of GTK? They'd probably be happy to hear that people like it (I figure I would...).

MicahCarrick 07-09-2006 02:49 PM

It's not too difficult to change a widget's font. Althought this isn't tested... if I recall, it's as easy as:

Code:

GtkWidget *w;
PangoFontDescription *font_desc;

/*
More code here to get a widget for w. Could be a GtkLabel, a GtkButton,
a GtkTextView, etc.
*/

/*
we specify the font in string format such as the string returned from
a call to gtk_font_selection_get_font_name()
*/
font_desc = pango_font_description_from_string ("monospace 10");
gtk_widget_modify_font (w, font_desc);

I love GTK+ as well.


All times are GMT -5. The time now is 11:59 PM.