Re: Exiting Program...

2003-09-24 Thread Chee Bin HOH
On Thu, 2003-09-25 at 08:25, Jason Dempsey wrote:
> Ok, since gtk_exit () is depreciated. Whats another way my users can
> click 'Quit' and exit the program entirely?

Create a 'Quit' button and attach a callback function to the widget's
`clicked` event, inside the callback function, invoke gtk_main_quit to
return from the gtk main event loop.

regards,
HOH
> 
> ___
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list
-- 
Chee Bin HOH ([EMAIL PROTECTED])

"Where we're going, we don't need roads...", GNOME (http://www.gnome.org)

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Learning GTK / GUI Programming

2003-09-02 Thread Chee Bin HOH
Hi Rick,

GNOME has a Human Interface guideline for designing GUI, it is applied
to GTK+ application too. 

http://developer.gnome.org/projects/gup/hig

For general hacking, refer to GNU Coding Standards
http://www.gnu.org/prep/standards_toc.html

regards,
HOH

On Sat, 2003-08-30 at 07:03, Rick Sutphin wrote:
> Hello,
> 
> I am a newbie who is trying to learn GTK+, and GUI programming in
> general. I have gone through the tutorial, and have written a couple
> simple programs. 
> 
> What I am having trouble with, is trying to learn to write/design larger
> applications. The programs I have written so far have been ugly; full of
> global variables, and with the application code tightly coupled to the
> GUI code. 
> 
> Does anyone have any suggestions of how to learn to write clean well
> designed GUI applications (in GTK or just in general)? 
> Rick
> 
> ___
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list
-- 
Chee Bin HOH ([EMAIL PROTECTED]), from where I belong, GNU and Free
Software community (http://www.gnu.org)


"Where we're going, we don't need roads...", GNOME (http://www.gnome.org)


Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

**
* The views expressed here regarding about Free Software are my personal *
* views, not those of MIMOS Berhad (http://www.mimos.my) and *
* iVEST (http://www.ivest.com.my)*
**

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


problem using gconf_client_notify_add

2003-06-11 Thread CHEE BIN HOH

I setup a callback using gconf_client_notify_add for a key, and then go
on to g_main_loop_run,

but the callback is NOT invoked when the key is changed, unless I use
gtk_main () instead of g_main_loop_run.

is there a way to use g_main_loop_run with gconf_client_notify_add
without resolve to gtk_main?


regards


-- 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chee Bin HOH (cbhoh)

iVEST Department,
Mimos Bhd,
Technology Park Malaysia,
57000, Kuala Lumpur,
Malaysia.

http://www.mimos.my
http://www.ivest.com.my

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+JkDQAlAFlqwDyl4RAqrhAKClZ50SvSMPeMWYEHbGKQDnfN5FQwCg4JGH
u4FBpHbJTKfskuJiS9BjP2o=
=pnCn
-END PGP SIGNATURE-

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


configure problems for gtk+-2.0.0

2002-03-21 Thread Chee Bin HOH

Hi guys,
I encountered an error when running configure script in gtk+-2.0.0:


checking ATK flags...  -I/usr/local/include/atk-1.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-L/usr/local/lib -latk-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for atk_object_get_type in -latk-1.0... no
configure: error:
*** Cannot link to Accessibility Toolkit. Accessibility
Toolkit is required
*** to build GTK+



However, by checking the /usr/local/lib directory, i found that
libatk-1.0.so is there, even i set the environment variables of
LDFLAGS='-L/usr/local/lib" (based on installation guide from gtk.org),
the same problems still happened.


Regards,
HOH

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list