2
* This file is part of GNAC - Gnome Audio Converter
4
* Copyright (C) 2007 - 2012 Gnac
6
* - DUPASQUIER Benoit <bdupasqu@src.gnome.org>
7
* - JOAQUIM David <djoaquim@src.gnome.org>
8
* - ROUX Alexandre <alexroux@src.gnome.org>
10
* GNAC is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 3 of the License, or
13
* (at your option) any later version.
15
* GNAC is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with GNAC; if not, write to the Free Software
22
* Foundation, Inc., 51 Franklin St, Fifth Floor,
23
* Boston, MA 02110-1301 USA
26
#ifndef GNAC_UI_UTILS_H
27
#define GNAC_UI_UTILS_H
34
gnac_ui_utils_get_combo_size(GtkComboBox *combo);
36
/* scale pixbuf to width x height while keeping the aspect ratio */
38
gnac_ui_utils_scale_pixbuf(GdkPixbuf *pixbuf,
42
/* add a one pixel black border around pixbuf */
44
gnac_ui_utils_add_border_to_pixbuf(GdkPixbuf *pixbuf);
47
gnac_ui_utils_event_is_left_click(GdkEventButton *event);
50
gnac_ui_utils_event_is_right_click(GdkEventButton *event);
53
gnac_ui_utils_event_is_double_left_click(GdkEventButton *event);
56
gnac_ui_utils_event_is_single_right_click(GdkEventButton *event);
59
gnac_ui_utils_event_is_key_press(GdkEventKey *event);
62
gnac_ui_utils_event_is_delete_key(GdkEventKey *event);
65
gnac_ui_utils_event_is_escape_key(GdkEventKey *event);
68
gnac_ui_utils_event_is_return_key(GdkEventKey *event);
71
gnac_ui_utils_create_gtk_builder(const gchar *filename);
74
gnac_ui_utils_get_object(GtkBuilder *builder,
75
const gchar *object_name);
78
gnac_ui_utils_get_widget(GtkBuilder *builder,
79
const gchar *widget_name);
82
gnac_ui_utils_get_action(GtkBuilder *builder,
83
const gchar *action_name);
86
gnac_ui_utils_set_action_sensitive(GtkBuilder *builder,
87
const gchar *action_name,
91
gnac_ui_utils_set_action_visible(GtkBuilder *builder,
92
const gchar *action_name,
96
gnac_ui_utils_set_widget_sensitive(GtkBuilder *builder,
97
const gchar *widget_name,
102
#endif /* GNAC_UI_UTILS_H */