Hekp,writing my own widget,about gtk_widget_new

2006-03-13 Thread yeajchao
Hello all I am frastrated about writing my own gtk widget You know,in the gtk tutorial, there is a widget named gtkdial And its definition like this : -- gtkdial.h struct _GtkDial { GtkWidget widget; ... }

Re: Sorting GtkListStore date column

2006-03-13 Thread Axel Simon
On Sun, 2006-03-12 at 21:39 -0500, Guy Rouillier wrote: I'll use the approach of storing the time_t corresponding to each displayed date in a hidden column, and use that hidden column as the sort column for the date column. Out of curiosity, would it also be possible to do this in a

change function gtk_text_buffer_select_range to gtk_text_buffer_apply_tag, then doesn't work!

2006-03-13 Thread gepolv
when i run the ATTACHED SOURCE CODE,it works perfectly.But when i change the function search_button_clicked as follow: void search_button_clicked (GtkWidget *search_button, App *app) { const gchar *text; GtkTextBuffer *buffer; GtkTextIter iter; GtkTextIter mstart, mend; gboolean found;

Re: Handling Unix signals in a GTK+ application

2006-03-13 Thread Freddie Unpenstein
Going back to your original point, it is definitely not a busy wait. I just rolled together a quick test... A GTK main loop running two sources. First an event source created using g_timeout_add() that prints the current count each second, and halting the program (via gtk_main_quit() )

Possible to use a gtk_timeout without a gtk_main loop

2006-03-13 Thread Noonan, Michael (DCOI)
Hi Folks, I was wondering would it be possible to have a gtk_timer running outside of the gtk_main loop. I have a separate process that needs to interact with a Gtk application every n seconds and I was wondering if I could set a gtk_timer using gtk_timeout_add() outside the gtk_main()

Re: Handling Unix signals in a GTK+ application

2006-03-13 Thread Andreas Stricker
Thomas Okken schrieb: I would like to catch SIGINT in my GTK+ application, to do a graceful exit. I was looking for the GTK+ equivalent of XtNoticeSignal(), but I guess there isn't one; No, I'm missing them too... I read a few articles discussing the use of a pipe, with an input source to

Re: Possible to use a gtk_timeout without a gtk_main loop

2006-03-13 Thread Tristan Van Berkom
Noonan, Michael (DCOI) wrote: Hi Folks, I was wondering would it be possible to have a gtk_timer running outside of the gtk_main loop. I have a separate process that needs to interact with a Gtk application every n seconds and I was wondering if I could set a gtk_timer using gtk_timeout_add()

GTK+ 2.8.15 released

2006-03-13 Thread Matthias Clasen
GTK+ 2.8.15 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.15.tar.bz2 md5sum: df49f7498ec8275519ee92087f8d04db gtk+-2.8.15.tar.gzmd5sum: 31e6e537664aa3320936c7adcc192c75 This is a bugfix release in the 2.8.x

GtktreeView Model segmentation fault

2006-03-13 Thread Van H Tran
Hi all, I get a Segmentation fault in a gtktreeview i'm using. Basically, it's a Treeview with expandable folders (like a file browser) The problem is: The program crashes very randomly when i just try to click to expand/collapse the folders, particularly when the tree has depth = 3. After a

Re: GdkBitmap - turning pixels OFF

2006-03-13 Thread Kent Humphries
I worked this out. For my situation I did the following: create a GdkBitmap* containing the original mask. Create a second GdkBitmap* for the inverted mask. Then create a GdkGC for inversion and draw to the inverted mask using the inversion GdkGC Code snippet: GdkBitmap *original_bitmap,