Re: Button Callbacks
- From: Tomas Carnecky <tom dbservice com>
- To: Vroni <verena31 gmx net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Button Callbacks
- Date: Wed, 19 Dec 2007 13:08:02 +0100
Vroni wrote:
Hi guys,
I have this really dumb problem, but I canÂt get my head around it. My
program should do the following:
- When a button is pressed, a specific playlist[m3u]-file should be
opened in the media player.
Sure, the first part is to add a callback for the buttons, but how do I
open the file (and with it the media player. It should do the same as a
double click on the file would)?
Is it even possible to do do it this way?
In a terminal, you'd do:
$ xdg-open /path/to/playlist.m3u
In your callback you'd probably want to use system() or g_spawn_async(),
see the man pages and
http://www.gtk.org/api/2.6/glib/glib-Spawning-Processes.html
tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]