2007-03-20 Priit Laes <plaes@svn.gnome.org> * gnome-da-capplet.c: Glue code to tie everything together. * gnome-da-capplet.h: Added widgets and defines for default mediaplayer. * gnome-da-xml.c: (gnome_da_xml_load_xml), (gnome_da_xml_free): Added mediaplayer data parser. * gnome-da-item.c: Changed occurrences of MailItem to SimpleItem, so we can also use it for mediaplayers. * gnome-da-item.h: Ditto. * gnome-default-applications-properties.glade: Make Multimedia tab visible and change the UI to include our favorite mediaplayer selector. * gnome-default-applications.xml.in: Add some media players to the list. Introduces preferred media application support. Bug #362578. svn path=/trunk/; revision=7403
65 lines
1.8 KiB
C
65 lines
1.8 KiB
C
/*
|
|
* Authors: Luca Cavalli <loopback@slackit.org>
|
|
*
|
|
* Copyright 2005-2006 Luca Cavalli
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of version 2 of the GNU General Public License
|
|
* as published by the Free Software Foundation
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef _GNOME_DA_ITEM_H_
|
|
#define _GNOME_DA_ITEM_H_
|
|
|
|
#include <glib.h>
|
|
|
|
typedef struct _GnomeDAItem GnomeDAItem;
|
|
|
|
typedef struct _GnomeDAWebItem GnomeDAWebItem;
|
|
typedef struct _GnomeDATermItem GnomeDATermItem;
|
|
typedef struct _GnomeDASimpleItem GnomeDASimpleItem;
|
|
|
|
struct _GnomeDAItem {
|
|
gchar *name;
|
|
gchar *executable;
|
|
gchar *command;
|
|
gchar *icon_name;
|
|
gchar *icon_path;
|
|
};
|
|
|
|
struct _GnomeDAWebItem {
|
|
GnomeDAItem generic;
|
|
gboolean run_in_terminal;
|
|
gboolean netscape_remote;
|
|
gchar *tab_command;
|
|
gchar *win_command;
|
|
};
|
|
|
|
struct _GnomeDASimpleItem {
|
|
GnomeDAItem generic;
|
|
gboolean run_in_terminal;
|
|
};
|
|
|
|
struct _GnomeDATermItem {
|
|
GnomeDAItem generic;
|
|
gchar *exec_flag;
|
|
};
|
|
|
|
GnomeDAWebItem* gnome_da_web_item_new (void);
|
|
GnomeDATermItem* gnome_da_term_item_new (void);
|
|
GnomeDASimpleItem* gnome_da_simple_item_new (void);
|
|
void gnome_da_web_item_free (GnomeDAWebItem *item);
|
|
void gnome_da_term_item_free (GnomeDATermItem *item);
|
|
void gnome_da_simple_item_free (GnomeDASimpleItem *item);
|
|
|
|
#endif
|