Button remains pressed until callback function ends

2005-02-16 Thread Michal Kepien
Hi, I'm quite a newbie to GTK+ and got some trouble with handling button clicks. I've got a callback function which reads in and plays a sound file. This function is connected to the clicked event of a button. The problem is, the button stays pushed until the sound playing function finishes its

Re: Button remains pressed until callback function ends

2005-02-16 Thread Padraig O'Briain
Play the sound in an idle handler which is set in the callback function. Padraig Michal Kepien wrote: Hi, I'm quite a newbie to GTK+ and got some trouble with handling button clicks. I've got a callback function which reads in and plays a sound file. This function is connected to the clicked event

Re: Button remains pressed until callback function ends

2005-02-16 Thread John Cupitt
On Wed, 16 Feb 2005 11:04:19 +0100, Michal Kepien [EMAIL PROTECTED] wrote: function is connected to the clicked event of a button. The problem is, the button stays pushed until the sound playing function finishes its work. I want the button to pop out immediately after it has been clicked

Re: Button remains pressed until callback function ends

2005-02-16 Thread Michal Kepien
Play the sound in an idle handler which is set in the callback function. That's quite a step forward. What if I want to play the sound in the background, enabling the program to process other events simultaneously? I mean, when the sound is being played, I can't eg. close the main window or

Re: Button remains pressed until callback function ends

2005-02-16 Thread Padraig O'Briain
Either use a separate thread or have the idle handler return periodically to allow the main loop to process events. Padraig Michal Kepien wrote: Play the sound in an idle handler which is set in the callback function. That's quite a step forward. What if I want to play the sound in the

Simulated keypress window focus

2005-02-16 Thread Andrew Gatt
Hi, I've recently been trying to implement a simulate keypress function, the function is activated by a command sent to the gui through a pipe, which is all working however the simulate keypress function never seems to actually work. The piece of code i'm using is: static void

Re: Simulated keypress window focus

2005-02-16 Thread John Cupitt
On Wed, 16 Feb 2005 10:48:38 + (GMT), Andrew Gatt [EMAIL PROTECTED] wrote: I've recently been trying to implement a simulate keypress function, the function is activated by a command sent to the gui through a pipe, which is all working however the simulate keypress function never seems to

Re: Button remains pressed until callback function ends

2005-02-16 Thread Iago Rubio
On Wed, 2005-02-16 at 11:34, Michal Kepien wrote: Play the sound in an idle handler which is set in the callback function. That's quite a step forward. What if I want to play the sound in the background, enabling the program to process other events simultaneously? I mean, when the sound

usubscribe

2005-02-16 Thread Tomas Soltys
-- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender immediately and delete this e-mail from your system. Please note that any

RE: usubscribe

2005-02-16 Thread Boncek, John
General information about the mailing list is at: http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page. You can also make such adjustments

odd shaped windows

2005-02-16 Thread Dave Andruczyk
Is it possible with gtk to display a window that doesn't have any window border, decorations, and be of arbritrary shape? I am starting work on a automotive dashboard that uses graphical images of a car's dash and uses gnomecanvase to render the needles and such and it would look a LOT better

Re: odd shaped windows

2005-02-16 Thread Nix N. Nix
On Wed, 2005-02-16 at 10:02 -0800, Dave Andruczyk wrote: Is it possible with gtk to display a window that doesn't have any window border, decorations, and be of arbritrary shape? Take a look at gmplayer: http://www.mplayerhq.hu/ ___

GtkTextView: scrolling last line to top

2005-02-16 Thread Paolo Costabel
Is there a way to scroll the last line of a text view to the top of the view? I tried to use the align parameter like this: gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW(EditorTextView), iter, 0.0, TRUE, 0.0, 0.0); where iter points to the last line in the buffer, but the view only scrolls so

Re: odd shaped windows

2005-02-16 Thread John Cupitt
On Wed, 16 Feb 2005 10:02:26 -0800 (PST), Dave Andruczyk [EMAIL PROTECTED] wrote: Is it possible with gtk to display a window that doesn't have any window border, decorations, and be of arbritrary shape? You need gdk_window_shape_combine_region() or gdk_window_shape_combine_mask():

Re: Re: Should I use Gtk+ or GUI?

2005-02-16 Thread jacky618 jacky618
Hi, I have resolved this problem after add gdk_threads_*() to all timer callback functions as following : gdk_threads_enter(); . . gdk_threads_leave(); Regards Rill //-- gdk_threads_enter();

gtk thread begginer

2005-02-16 Thread Boris Winter
do somebody can sand an simple example how to use gtk threads? how can i application like counter? thanks -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14.2.2005 ___

Re: GtkTreeView cursor focus

2005-02-16 Thread Stefan Kost
I've already narrowed this a little further - its in gtktreeview.c (3801) /* draw the big row-spanning focus rectangle, if needed */ if (!has_special_cell node == cursor GTK_TREE_VIEW_FLAG_SET (tree_view, GTK_TREE_VIEW_DRAW_KEYFOCUS) GTK_WIDGET_HAS_FOCUS (widget)) {

Re: format number on gtklabel

2005-02-16 Thread Paul Davis
It's locale dependent, so make sure LC_NUMERIC is set to a locale that formats in that style (e.g. da_DK, and presumably your own). In order to use the locale stuff in C or C++, you need to call setlocale to set the locale stuff up. that much is true. In C: #include locale.h

Re: format number on gtklabel

2005-02-16 Thread Sven Neumann
Hi, Paul Davis [EMAIL PROTECTED] writes: #include locale.h setlocale(LC_ALL, ); as noted by someone else, this is a very very unfriendly thing to do unless it is restricted to places where you are doing serialization (ie. saving state to disk) If you are doing serialization, you

Re: format number on gtklabel

2005-02-16 Thread Paul Davis
If you are doing serialization, you wouldn't change the locale but use the locale-independent functions provided by glib (g_ascii_strtod and g_ascii_dtostr). i have a policy of not using glib functions in code that doesn't use GTK. wrong-headed? perhaps. but there it is.

gtk+1.2 and xorg-6.8.2. Font problem. [Partial solution]

2005-02-16 Thread Peter
Hello. I don't know how xorg and gtk are interconnected, but my problem arised after upgrade of xorg to 6.8.2_rc2 version and freetype library to 2.1.9. I had (and have) strange problem with all gtk-1 based applications in ru_RU.UTF-8 locale. I can not see any russian letters there. There are

Re: How to change the font of GtkComboBox popup list

2005-02-16 Thread Marco Scholten
On Tue, 15 Feb 2005 09:53:29 -0600, Greg Breland [EMAIL PROTECTED] wrote: On Tue, 2005-02-15 at 08:52, Marco Scholten wrote: I think you are talking about GtkCombo, i was talking about GtkComboBox. I think i may have to create a cellrenderertext set its font and pack that into the combobox,

unorthidox use of GAllocator and GSList?

2005-02-16 Thread Ben Johnson
Hi I'm wondering if I should cease and desist. I'm using the GSList and the GAllocator in way that they may not be designed for. The reason I am doing it this way is I want to allocate space for my list nodes and my data in the same big chunk. In other words, I'm creating list nodes that