[clue-tech] answer to Gtk/GNOME problems

Dennis J Perkins dennisjperkins at comcast.net
Fri Feb 1 21:39:58 MST 2008


I hope it helps.  I've been continuing my studies into Ruby/Gtk and I'm
probably about half thru exploring Gtk.  I made an initial foray into
using Glade and it seems to work well.

On Thu, 2008-01-31 at 16:09 -0700, Rick Burton wrote:
> Dennis, 
> 
> Apologies for the slow response - a bit of a family emergency has been
> upon us. I'll be looking at the existing bugs such as this one that
> you are addressing very soon. Talk to you at the Feb CLUE if not
> before!
> 
> -Rick 
> 
> On Jan 9, 2008 9:51 PM, Dennis J Perkins <dennisjperkins at comcast.net>
> wrote:
>         Assuming that I remember what you showed me yesterday, I think
>         these
>         might help you.
>         
>         1. Clicking on the Close button does nothing.
>         
>         You need to connect the "destroy" signal to a signal handler.
>          You might
>         need to do this for the "delete" event too, but I'm not sure
>         exactly
>         what this does.  You probably want to use the same exit
>         routine that is
>         calle from the menu.
>         
>         Look for the line containing g_signal_connect (G_OBJECT
>         (window),
>         "destroy", G_CALLBACK (destroy), NULL);
>         
>         http://www.gtk.org/tutorial/c39.html#SEC-HELLOWORLD
>         
>         
>         2. You need to destroy the dialog when you are done.  This is
>         an example
>         I got from the Internet.
>         
>          GtkWidget * about_dlg;
>          about_dlg = create_aboutdialog ();
>          gtk_dialog_run (GTK_DIALOG (about_dlg ));
>          gtk_widget_destroy (about_dlg);
>         
>         _______________________________________________
>         clue-tech mailing list
>         clue-tech at cluedenver.org
>         http://www.cluedenver.org/mailman/listinfo/clue-tech
> 
> _______________________________________________
> clue-tech mailing list
> clue-tech at cluedenver.org
> http://www.cluedenver.org/mailman/listinfo/clue-tech



More information about the clue-tech mailing list