From 444c9529db851e8b26217d9434f7bfe14ab36cf9 Mon Sep 17 00:00:00 2001 From: GMT 1998 Tony Gale Date: Mon, 16 Mar 1998 18:27:27 +0000 Subject: - new question on modal windows - new question on updating progressbars - Mon Mar 16 18:19:31 GMT 1998 Tony Gale * docs/gtkfaq.sgml: - new question on modal windows - new question on updating progressbars - update all the links to gtk.org --- docs/faq/gtkfaq.sgml | 51 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 13 deletions(-) (limited to 'docs/faq') diff --git a/docs/faq/gtkfaq.sgml b/docs/faq/gtkfaq.sgml index b0cd7f41c6..0a6d7fb957 100644 --- a/docs/faq/gtkfaq.sgml +++ b/docs/faq/gtkfaq.sgml @@ -84,8 +84,8 @@ GTK Tutorial. In addition, you can find links to HTML versions of these documents by going to -. +. The Tutorial and FAQ can also be found at The canonical site is: -ftp://ftp.gimp.org/pub/gtk +ftp://ftp.gtk.org/pub/gtk -Of course, any mirrors of ftp.gimp.org should have the latest version, too. +Of course, any mirrors of ftp.gtk.org should have the latest version, too. How do I configure/compile GTK+?

@@ -285,7 +285,7 @@ and then generate a patch in the form of a 'context diff'. This can be done using a command such as -ftp://ftp.gimp.org/incoming +ftp://ftp.gtk.org/incoming along with a README file. Make sure you follow the naming conventions or your patch will just be deleted! The filenames should be of this form: @@ -302,12 +302,12 @@ Example: gtk-gale-982701-0.patch.gz gtk-gale-982701-0.patch.README -Once you upload anything, send the README to ftp-admin@gimp.org +Once you upload anything, send the README to ftp-admin@gtk.org How do I know if my patch got applied, and if not, why not?

-Uploaded patches will be moved to ftp://ftp.gimp.org/pub/gtk/patches +Uploaded patches will be moved to ftp://ftp.gtk.org/pub/gtk/patches where one of the GTK+ development team will pick them up. If applied, they will be moved to /pub/gtk/patches/old. @@ -337,7 +337,7 @@ http://www.cs.tut.fi/~p150650/gtk/gtk--.html The FTP site is: -ftp://ftp.gimp.org/pub/gtk/gtk--/ +ftp://ftp.gtk.org/pub/gtk/gtk--/

@@ -362,7 +362,7 @@ ftp://ftp.gimp.org/pub/gtk/gtk--/

Perl bindings -ftp://ftp.gimp.org/pub/gtk/perl +ftp://ftp.gtk.org/pub/gtk/perl Guile bindings. The home page is at: @@ -388,7 +388,7 @@ http://www.acs.ucalgary.cs/~nashceme/python-gtk/ If you try python-gtk and don't like it, there's also pygtk located at: -ftp://ftp.gimp.org/pub/gtk/python/ +ftp://ftp.gtk.org/pub/gtk/python/ @@ -407,8 +407,8 @@ http://www.sakuranet.or.jp/~aozasa/shige/doc/comp/gtk/gtkGL/files-en.html

So, after you have installed GTK+ there are a couple of things that can ease you into developing applications with it. There is the -GTK+ Tutorial , which is undergoing +GTK+ Tutorial , which is undergoing development. This will introduce you to writing applications using C. The Tutorial doesn't (yet) contain information on all of the widgets @@ -710,7 +710,7 @@ determined it didn't look good and removed it. How can I define a separation line in a menu?

-See the for information on how to create menus. However, to create a separation line in a menu, just insert an empty menu item: @@ -730,6 +730,31 @@ Use something like the following: menu_path = gtk_menu_factory_find (factory, "/Help"); gtk_menu_item_right_justify(menu_path->widget); + +How do I make my window modal? / How do I make a single window active? +

+After you create your window, do gtk_grab_add(my_window). And after +closing the window do gtk_grab_remove(my_window). + + +Why doesn't my progressbar update? +

+ +You are probably doing all the progressbar changes within a function +without returning control to gtk_main. Most drawing updates are only +placed on a queue, which is processed within gtk_main. You can +force the drawing queue to be processed using something like: + + +while (gtk_events_pending()) + gtk_main_iteration(); + + +inside you're function that changes the progress bar. + +What the above snippet does is run all pending events and high priority +idle functions, then return immediately (the drawing is done in a +high priority idle function). About gdk -- cgit v1.2.1