X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fui_utils.h;fp=src%2Fui_utils.h;h=9ebfce7097b7dc92a95ffae5f2323b691202312f;hb=d9387a581ab513a84a69b9d85979e1ea6e439863;hp=0000000000000000000000000000000000000000;hpb=0e53220ffe755b378422618e1de0e4865ba2556d;p=melted_gui diff --git a/src/ui_utils.h b/src/ui_utils.h new file mode 100644 index 0000000..9ebfce7 --- /dev/null +++ b/src/ui_utils.h @@ -0,0 +1,30 @@ +/* + * ui_utils.h -- GTK+ 2 omnplay + * Copyright (C) 2011 Maksym Veremeyenko + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef UI_UTILS_H +#define UI_UTILS_H + +#define GLADE_HOOKUP_OBJECT(component,widget,name) \ + g_object_set_data_full (G_OBJECT (component), name, \ + gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) + +#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ + g_object_set_data (G_OBJECT (component), name, widget) + +#endif /* UI_UTILS_H */