check id before play and fix timecode range if required
[omnplay] / src / ui_utils.h
1 /*
2 * ui_utils.h -- GTK+ 2 omnplay
3 * Copyright (C) 2011 Maksym Veremeyenko <verem@m1stereo.tv>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 #ifndef UI_UTILS_H
21 #define UI_UTILS_H
22
23 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
24 g_object_set_data_full (G_OBJECT (component), name, \
25 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
26
27 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
28 g_object_set_data (G_OBJECT (component), name, widget)
29
30 #endif /* UI_UTILS_H */