Re: Reshowing Icons in a Grid (Andrew Potter)

2014-03-15 Thread Marshall Lake
irst time, then you should be able to add them to new containers after they are destroyed. That's the ticket! Thanks. One minor change ... it should be g_object_ref_sink() rather than g_object_sink_ref(). -- Marshall Lake -- ml...@mlake.ne

Reshowing Icons in a Grid

2014-03-14 Thread Marshall Lake
eferencing issue. But, shouldn't the gtk_widget_destroy(grid) destroy all references? How can I reshow the icons without reloading the files? -- Marshall Lake -- ml...@mlake.net -- http://www.mlake.net ___ gtk-app-devel-list mailing list gtk

Timely Display of Dialog Contents

2012-03-27 Thread Marshall Lake
picbox), gtk_image_new_from_pixbuf (pic)); gtk_box_pack_start (GTK_BOX (vbox2), picbox, TRUE, TRUE, 0); gtk_widget_show_all (batterpicwin); -- Marshall Lake -- ml...@mlake.net -- http://www.mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Timed Display of a Dialog

2010-04-15 Thread Marshall Lake
Is it possible to display a dialog for a timed interval (a few seconds) and have it auto-self-destruct? If so, please describe the method(s) of such. Thanks. -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel-list mailing

Application Ending Before Secondary Thread Ends

2009-11-11 Thread Marshall Lake
pect I can avoid this behavior by doing a g_thread_join() and waiting for the thread to finish before exiting the application. But I don't really want to do that (some of the audio is very long). Are there any alternatives? -- Marshall Lake -- ml...@mlake.net -- h

Re: Idle Function Not Getting Called

2009-09-14 Thread Marshall Lake
gun. Removing the gdk_* calls fixed the problem. It's something I should have known. I really appreciate your time and effort helping me. -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-a

Re: Idle Function Not Getting Called

2009-09-14 Thread Marshall Lake
initialize GTK interface */ gtk_init (&argc, &argv); -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Idle Function Not Getting Called

2009-09-13 Thread Marshall Lake
her but at this point I'm not sure what to check next. -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Idle Function Not Getting Called

2009-09-12 Thread Marshall Lake
_full()". Maybe I don't know what idle "handler" is but isn't that a moot point since the idle function (handler?) always runs in the main program loop thread? -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___

Re: Idle Function Not Getting Called

2009-09-12 Thread Marshall Lake
main program loop runs, not the thread which called g_idle_add()/ g_idle_add_full(), and that it runs at a time not of that calling thread's choosing. I don't quite understand this. Don't all idle functions run in the main program loop thread? -- Marshall Lake -- ml.

Re: Idle Function Not Getting Called

2009-09-11 Thread Marshall Lake
that the multi-threaded facet of the code is causing my problem but so far I'm having trouble using breakpoints/debug code to isolate the exact cause. The mutex locks/unlocks are only in a secondary thread and an idle function. I assume there's no problems with idle functions using mu

Re: Idle Function Not Getting Called

2009-09-09 Thread Marshall Lake
GTK_WINDOW (dlgFile), "Use Designated Hitter?"); gtk_signal_connect (GTK_OBJECT (dlgFile), "delete_event", GTK_SIGNAL_FUNC (donot_delete_event), 0); label = gtk_label_new ("Select One:"); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlgFile)->vbox), label, TRUE, TRUE, 0); gtk

Re: Idle Function Not Getting Called

2009-09-05 Thread Marshall Lake
friend-less :). I have to keep digging. -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Idle Function Not Getting Called

2009-09-04 Thread Marshall Lake
snippet, program flow gets stuck in the while loop until the idle function removes itself by returning FALSE. -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org

Threads and g_idle_add()

2009-08-26 Thread Marshall Lake
idle function it had added is still active? Also, is it alright to call g_idle_add() from within an idle function? (the initial g_idle_add() call is being done in a secondary thread) -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel

Re: GTK & threads

2009-07-17 Thread Marshall Lake
eply, please add CC to devel mailing list, so other peoples know it's progress and may help you more). --- ml...@mlake.net wrote: From: Marshall Lake To: Ardhan Madras Subject: Re: GTK & threads Date: Wed, 8 Jul 2009 12:21:34 -0400 (EDT) Thanks for your feedback. I think what you say

GTK & threads

2009-07-08 Thread Marshall Lake
d_create (Wait4Challenge, NULL, FALSE, NULL)) syslog (LOG_INFO, "error trying to create new thread"); gdk_threads_enter (); gtk_main (); gdk_flush(); gdk_threads_leave (); return 0; } -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Full Screen mode behaves differently on two "identical" systems

2009-01-27 Thread Marshall Lake
tiple kernels. Any ideas? Are you moving executables or recompiling from machine to machine? Are the compiler versions the same across the machines? -- Marshall Lake -- ml...@mlake.net -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel

Re: treeview: seg fault When Collapsing a Row Containg a Selected Item

2007-06-18 Thread Marshall Lake
path_str[10] = " "; >> gboolean valid; >> >> gtk_tree_selection_get_selected (selection, &model, &iter); > The gtk_tree_selection_get_selected() api returns TRUE is something is > selected. You never checked its return value! That

Re: treeview: seg fault When Collapsing a Row Containg a Selected Item

2007-06-17 Thread Marshall Lake
goto GetOutFor; row_count++; valid = gtk_tree_model_iter_next (model, &iter); } } GetOutFor: [do some processing and return] -- Marshall Lake -- [EMAIL PROTECTED] -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

treeview: seg fault When Collapsing a Row Containg a Selected Item

2007-06-16 Thread Marshall Lake
ror as noted above at the point the gtk_tree_selection_unselect_iter() was executed. Can someone tell me what might need to be done to avoid the seg fault? -- Marshall Lake -- [EMAIL PROTECTED] -- http://mlake.net ___ gtk-app-devel-list mailing list gt

Editing a Large Amount of Data Containing Many Fields

2007-05-13 Thread Marshall Lake
a please let me know. I would prefer to edit the data utilizing GTK but I'm open to any suggestions or ideas. TIA. -- Marshall Lake -- [EMAIL PROTECTED] -- http://mlake.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://ma