2 * ui.c -- GTK+ 2 omnplay
3 * Copyright (C) 2011 Maksym Veremeyenko <verem@m1stereo.tv>
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.
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.
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.
24 #include <sys/types.h>
30 #include <gdk/gdkkeysyms.h>
36 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
37 g_object_set_data_full (G_OBJECT (component), name, \
38 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
40 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
41 g_object_set_data (G_OBJECT (component), name, widget)
44 GtkWidget
* ui_omnplay (omnplay_instance_t
* app
)
48 wnd
= gtk_window_new (GTK_WINDOW_TOPLEVEL
);
49 GLADE_HOOKUP_OBJECT_NO_REF (wnd
, wnd
, "omnplay_window");
51 gtk_window_set_title (GTK_WINDOW (wnd
), _("Omneon Player"));
52 gtk_window_set_default_size (GTK_WINDOW (wnd
), 1024, 768);