~ubuntu-branches/ubuntu/precise/nautilus-actions/precise

« back to all changes in this revision

Viewing changes to nact/nact-prefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Christine Spang
  • Date: 2009-08-12 14:04:00 UTC
  • mfrom: (1.1.6 upstream) (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090812140400-ufe3o3jvr62lf0sf
Tags: 1.12.0-1
* New upstream stable release.
  - Actions can now be enabled/disabled: disabled actions will
    never show up in the nautilus context menu
  - Gnome Bugzilla bugs fixed:
    - #325519 asked by Frederic Ruaudel (enabled property)
    - #590398 reported by Pierre Wieser (install doc)
    - #590399 reported by Pierre Wieser (gtk_image_menu_item_set_image)
    - #590709 reported by Claude Paroz (markup in translatable strings)
    - #590711 reported by Claude Paroz (pipe char is ambiguous to translate)
 - Do not install GConf schemas if --disable-schemas-install option has
   been specified
 - New/updated es and fr translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Nautilus Actions
3
 
 *
4
 
 * Copyright (C) 2005 The GNOME Foundation
5
 
 * Copyright (C) 2006, 2007, 2008 Frederic Ruaudel and others (see AUTHORS)
6
 
 * Copyright (C) 2009 Pierre Wieser and others (see AUTHORS)
7
 
 *
8
 
 * This Program is free software; you can redistribute it and/or
9
 
 * modify it under the terms of the GNU General Public License as
10
 
 * published by the Free Software Foundation; either version 2 of
11
 
 * the License, or (at your option) any later version.
12
 
 *
13
 
 * This Program is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU General Public
19
 
 * License along with this Library; see the file COPYING.  If not,
20
 
 * write to the Free Software Foundation, Inc., 59 Temple Place,
21
 
 * Suite 330, Boston, MA 02111-1307, USA.
22
 
 *
23
 
 * Authors:
24
 
 *   Frederic Ruaudel <grumz@grumz.net>
25
 
 *   Rodrigo Moya <rodrigo@gnome-db.org>
26
 
 *   Pierre Wieser <pwieser@trychlos.org>
27
 
 *   ... and many others (see AUTHORS)
28
 
 */
29
 
 
30
 
#ifndef __NACT_PREFS_H__
31
 
#define __NACT_PREFS_H__
32
 
 
33
 
#include <glib.h>
34
 
#include <gtk/gtk.h>
35
 
#include <gconf/gconf-client.h>
36
 
 
37
 
G_BEGIN_DECLS
38
 
 
39
 
typedef struct _NactPreferences NactPreferences;
40
 
 
41
 
struct _NactPreferences {
42
 
        GSList* schemes;
43
 
        gint main_size_width;
44
 
        gint main_size_height;
45
 
        gint main_position_x;
46
 
        gint main_position_y;
47
 
        gint edit_size_width;
48
 
        gint edit_size_height;
49
 
        gint edit_position_x;
50
 
        gint edit_position_y;
51
 
        gint im_ex_size_width;
52
 
        gint im_ex_size_height;
53
 
        gint im_ex_position_x;
54
 
        gint im_ex_position_y;
55
 
        gchar* icon_last_browsed_dir;
56
 
        gchar* path_last_browsed_dir;
57
 
        gchar* import_last_browsed_dir;
58
 
        gchar* export_last_browsed_dir;
59
 
        GConfClient* client;
60
 
        guint prefs_notify_id;
61
 
};
62
 
 
63
 
GSList* nact_prefs_get_schemes_list (void);
64
 
 
65
 
void nact_prefs_set_schemes_list (GSList* schemes);
66
 
 
67
 
gboolean nact_prefs_get_main_dialog_size (gint* width, gint* height);
68
 
void nact_prefs_set_main_dialog_size (GtkWindow* dialog);
69
 
 
70
 
gboolean nact_prefs_get_edit_dialog_size (gint* width, gint* height);
71
 
void nact_prefs_set_edit_dialog_size (GtkWindow* dialog);
72
 
 
73
 
gboolean nact_prefs_get_im_ex_dialog_size (gint* width, gint* height);
74
 
void nact_prefs_set_im_ex_dialog_size (GtkWindow* dialog);
75
 
 
76
 
 
77
 
gboolean nact_prefs_get_main_dialog_position (gint* x, gint* y);
78
 
void nact_prefs_set_main_dialog_position (GtkWindow* dialog);
79
 
 
80
 
gboolean nact_prefs_get_edit_dialog_position (gint* x, gint* y);
81
 
void nact_prefs_set_edit_dialog_position (GtkWindow* dialog);
82
 
 
83
 
gboolean nact_prefs_get_im_ex_dialog_position (gint* x, gint* y);
84
 
void nact_prefs_set_im_ex_dialog_position (GtkWindow* dialog);
85
 
 
86
 
 
87
 
gchar* nact_prefs_get_icon_last_browsed_dir (void);
88
 
void nact_prefs_set_icon_last_browsed_dir (const gchar* path);
89
 
 
90
 
gchar* nact_prefs_get_path_last_browsed_dir (void);
91
 
void nact_prefs_set_path_last_browsed_dir (const gchar* path);
92
 
 
93
 
gchar* nact_prefs_get_import_last_browsed_dir (void);
94
 
void nact_prefs_set_import_last_browsed_dir (const gchar* path);
95
 
 
96
 
gchar* nact_prefs_get_export_last_browsed_dir (void);
97
 
void nact_prefs_set_export_last_browsed_dir (const gchar* path);
98
 
 
99
 
 
100
 
void nact_prefs_save_preferences (void);
101
 
 
102
 
G_END_DECLS
103
 
 
104
 
#endif /* __NACT_PREFS_H__ */