~ubuntu-branches/ubuntu/vivid/rawstudio/vivid

« back to all changes in this revision

Viewing changes to src/gtk-helper.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2011-07-28 17:36:32 UTC
  • mfrom: (2.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110728173632-5czluz9ye3c83zc5
Tags: 2.0-1
* [3750b2cf] Merge commit 'upstream/2.0'
* [63637468] Removing Patch, not necessary anymore.
* [2fb580dc] Add new build-dependencies.
* [c57d953b] Run dh_autoreconf due to patches in configure.in
* [13febe39] Add patch to remove the libssl requirement.
* [5ae773fe] Replace libjpeg62-dev by libjpeg8-dev :)
* [1969d755] Don't build static libraries.
* [7cfe0a2e] Add a patch to fix the plugin directory path.
  As plugins are shared libraries, they need to go into /usr/lib,
  not into /usr/share.
  Thanks to Andrew McMillan
* [c1d0d9dd] Don't install .la files for all plugins and libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2006-2009 Anders Brander <anders@brander.dk> and 
3
 
 * Anders Kvist <akv@lnxbx.dk>
 
2
 * * Copyright (C) 2006-2011 Anders Brander <anders@brander.dk>, 
 
3
 * * Anders Kvist <akv@lnxbx.dk> and Klaus Post <klauspost@gmail.com>
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU General Public License
17
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
18
 */
19
19
 
 
20
#ifndef WIN32
 
21
#include <gconf/gconf-client.h>
 
22
#endif
 
23
 
20
24
typedef struct _RS_CONFBOX RS_CONFBOX;
21
25
 
 
26
#define gui_label_set_text_printf(label, format, ...) do { \
 
27
        gchar *__new_text = g_strdup_printf(format, __VA_ARGS__); \
 
28
        gtk_label_set_text(label, __new_text); \
 
29
        g_free(__new_text); \
 
30
} while (0)
 
31
 
22
32
extern gpointer gui_confbox_get_active(RS_CONFBOX *confbox);
23
33
extern void gui_confbox_add_entry(RS_CONFBOX *confbox, const gchar *conf_id, const gchar *text, gpointer *user_data);
24
34
extern void gui_confbox_load_conf(RS_CONFBOX *confbox, gchar *default_value);
34
44
extern void gui_batch_directory_entry_changed(GtkEntry *entry, gpointer user_data);
35
45
extern void gui_batch_filename_entry_changed(GtkComboBox *combobox, gpointer user_data);
36
46
extern void gui_batch_filetype_combobox_changed(gpointer active, gpointer user_data);
37
 
extern void gui_export_changed_helper(GtkLabel *label);
38
 
extern void gui_export_directory_entry_changed(GtkEntry *entry, gpointer user_data);
39
 
extern void gui_export_filename_entry_changed(GtkComboBox *combobox, gpointer user_data);
40
 
extern GtkWidget *gui_preferences_make_cms_page();
41
47
extern gboolean window_key_press_event(GtkWidget *widget, GdkEventKey *event);
42
48
extern void pos_menu_below_widget(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer user_data);
43
49
extern GtkWidget *gui_framed(GtkWidget *widget, const gchar *title, GtkShadowType shadowtype);
44
50
extern GtkWidget *gui_aligned(GtkWidget *widget, const gfloat xalign, const gfloat yalign, const gfloat xscale, const gfloat yscale);
45
51
extern GdkPixbuf *cairo_convert_to_pixbuf (cairo_surface_t *surface);
 
52
extern void gui_set_block_keyboard(gboolean block_keyboard);
46
53
 
47
54
/**
48
55
 * Build and show a popup-menu
60
67
 
61
68
extern void gui_select_theme(RS_THEME theme);
62
69
 
63
 
extern GtkWidget *gui_dialog_make_from_text(const gchar *stock_id, gchar *primary_text, gchar *secondary_text);
64
 
extern GtkWidget *gui_dialog_make_from_widget(const gchar *stock_id, gchar *primary_text, GtkWidget *widget);
65
 
 
66
70
/**
67
71
 * Creates a new GtkButton widget.
68
72
 * @param stock_id A stock id registered with GTK+
79
83
 * @return A new GtkLabel
80
84
 */
81
85
extern GtkWidget *gui_label_new_with_mouseover(const gchar *normal_text, const gchar *hover_text);
 
86
 
 
87
extern void gui_box_toggle_callback(GtkExpander *expander, gchar *key);
 
88
#ifndef WIN32
 
89
extern void gui_box_notify(GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data);
 
90
#endif
 
91
extern GtkWidget * gui_box(const gchar *title, GtkWidget *in, gchar *key, gboolean default_expanded);