2006-01-16 15:13:33 +00:00
|
|
|
/*
|
|
|
|
* 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_CAPPLET_H_
|
|
|
|
#define _GNOME_DA_CAPPLET_H_
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <gconf/gconf-client.h>
|
|
|
|
|
|
|
|
#define DEFAULT_APPS_KEY_TERMINAL_PATH "/desktop/gnome/applications/terminal"
|
|
|
|
#define DEFAULT_APPS_KEY_TERMINAL_EXEC_ARG DEFAULT_APPS_KEY_TERMINAL_PATH"/exec_arg"
|
|
|
|
#define DEFAULT_APPS_KEY_TERMINAL_EXEC DEFAULT_APPS_KEY_TERMINAL_PATH"/exec"
|
|
|
|
|
2007-03-20 18:53:59 +00:00
|
|
|
#define DEFAULT_APPS_KEY_MEDIA_PATH "/desktop/gnome/applications/media"
|
|
|
|
#define DEFAULT_APPS_KEY_MEDIA_EXEC DEFAULT_APPS_KEY_MEDIA_PATH"/exec"
|
|
|
|
#define DEFAULT_APPS_KEY_MEDIA_NEEDS_TERM DEFAULT_APPS_KEY_MEDIA_PATH"/needs_term"
|
|
|
|
|
2007-04-23 15:04:41 +00:00
|
|
|
#define DEFAULT_APPS_KEY_VISUAL_PATH "/desktop/gnome/applications/at/visual"
|
|
|
|
#define DEFAULT_APPS_KEY_VISUAL_EXEC DEFAULT_APPS_KEY_VISUAL_PATH"/exec"
|
|
|
|
#define DEFAULT_APPS_KEY_VISUAL_STARTUP DEFAULT_APPS_KEY_VISUAL_PATH"/startup"
|
|
|
|
|
|
|
|
#define DEFAULT_APPS_KEY_MOBILITY_PATH "/desktop/gnome/applications/at/mobility"
|
|
|
|
#define DEFAULT_APPS_KEY_MOBILITY_EXEC DEFAULT_APPS_KEY_MOBILITY_PATH"/exec"
|
|
|
|
#define DEFAULT_APPS_KEY_MOBILITY_STARTUP DEFAULT_APPS_KEY_MOBILITY_PATH"/startup"
|
|
|
|
|
2006-01-16 15:13:33 +00:00
|
|
|
typedef struct _GnomeDACapplet GnomeDACapplet;
|
|
|
|
|
|
|
|
struct _GnomeDACapplet {
|
2009-07-10 15:00:29 +02:00
|
|
|
GtkBuilder *builder;
|
2006-01-16 15:13:33 +00:00
|
|
|
|
2006-02-28 21:02:55 +00:00
|
|
|
GtkIconTheme *icon_theme;
|
|
|
|
|
2006-01-16 15:13:33 +00:00
|
|
|
GtkWidget *window;
|
|
|
|
|
|
|
|
GtkWidget *web_combo_box;
|
|
|
|
GtkWidget *mail_combo_box;
|
|
|
|
GtkWidget *term_combo_box;
|
2007-04-23 15:04:41 +00:00
|
|
|
GtkWidget *visual_combo_box;
|
|
|
|
GtkWidget *mobility_combo_box;
|
2006-01-16 15:13:33 +00:00
|
|
|
|
|
|
|
GtkWidget *terminal_command_entry;
|
|
|
|
GtkWidget *terminal_command_label;
|
|
|
|
GtkWidget *terminal_exec_flag_entry;
|
|
|
|
GtkWidget *terminal_exec_flag_label;
|
|
|
|
|
2007-04-23 15:04:41 +00:00
|
|
|
GtkWidget *visual_command_entry;
|
|
|
|
GtkWidget *visual_command_label;
|
|
|
|
GtkWidget *visual_startup_checkbutton;
|
|
|
|
|
|
|
|
GtkWidget *mobility_command_entry;
|
|
|
|
GtkWidget *mobility_command_label;
|
|
|
|
GtkWidget *mobility_startup_checkbutton;
|
|
|
|
|
2006-01-16 15:13:33 +00:00
|
|
|
GConfClient *gconf;
|
|
|
|
|
|
|
|
GList *web_browsers;
|
|
|
|
GList *mail_readers;
|
|
|
|
GList *terminals;
|
2007-04-23 15:04:41 +00:00
|
|
|
GList *visual_ats;
|
|
|
|
GList *mobility_ats;
|
2010-07-22 15:56:26 +01:00
|
|
|
|
|
|
|
guint theme_changed_id;
|
2006-01-16 15:13:33 +00:00
|
|
|
};
|
|
|
|
|
2010-05-24 11:17:04 +01:00
|
|
|
void gnome_default_applications_panel_init (GnomeDACapplet *capplet);
|
2010-10-13 15:28:33 +02:00
|
|
|
|
2006-01-16 15:13:33 +00:00
|
|
|
#endif
|