LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2006, 05:08 AM   #1
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
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.
 
Old 07-09-2006, 02:29 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
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...).
 
Old 07-09-2006, 02:49 PM   #3
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK+ programs on Windows without having to install GTK+, GLib, etc Nylex Programming 2 02-19-2006 01:33 PM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 12:51 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration