<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I have realised that the documentation says that calls to
g_main_loop_run can be nested - so my fears are probably groundless.<br>
<br>
Ian<br>
<br>
<div class="moz-cite-prefix">On 11/01/2014 11:58, Ian Davidson
wrote:<br>
</div>
<blockquote cite="mid:52D131CA.1090502@blueyonder.co.uk" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<p class="western">I have taken a break from programming over the
festivities and have now turned my thoughts back to my program.</p>
<p class="western">With my GStreamer console based application,
the program's main 'lined up all the gstreamer elements', set
the ball rolling, and then went to g_main_loop_run which waited
for interesting signals. I realise that there was a lot of
multi-threading and other clever stuff going on, but what I had
to write was impressively simple.</p>
<p class="western">Then I turned to look at my GUI interface and
chose GTK as, seemingly, the best way to write my code. I notice
that the main program lines up all the buttons I want on the
screen, I have event handlers for when buttons are pressed and
then I go to gtk_main() to wait for things to happen.</p>
<p class="western">My hang-up is that I don't know how to
reconcile these two bits of code waiting. I think that I have
read that gtk_main is a wrapper for g_main_loop_run, so there
must be something from there that I need to incorporate into my
main loop. Is there some sample code I can look at?</p>
<title></title>
<meta name="GENERATOR" content="OpenOffice 4.0.0 (Win32)">
<style type="text/css">
<!--
@page { margin: 2cm }
--></style></blockquote>
<br>
</body>
</html>