1 /* -*- Mode: C; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 3 -*- */
2 
3 /*
4  * GImageView
5  * Copyright (C) 2001-2002 Takuro Ashie
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  *
21  * $Id: gimv_prefs_ui_utils.h,v 1.2 2003/06/13 09:43:33 makeinu Exp $
22  */
23 
24 #ifndef __GIMV_PREFS_UI_UTILS_H__
25 #define __GIMV_PREFS_UI_UTILS_H__
26 
27 #ifdef HAVE_CONFIG_H
28 #  include <config.h>
29 #endif
30 
31 #include <gtk/gtk.h>
32 
33 
34 GtkWidget *gimv_prefs_ui_mouse_prefs    (const gchar **items,
35                                          const gchar  *defval,
36                                          gchar       **dest);
37 GtkWidget *gimv_prefs_ui_dir_list_prefs (const gchar  *title,
38                                          const gchar  *dialog_title,
39                                          const gchar  *defval,
40                                          gchar       **prefsval,
41                                          gchar         sepchar);
42 GtkWidget *gimv_prefs_ui_double_clist   (const gchar  *title,
43                                          const gchar  *clist1_title,
44                                          const gchar  *clist2_title,
45                                          GList        *available_list,
46                                          const gchar  *defval,
47                                          gchar       **prefsval,
48                                          gchar         sepchar);
49 
50 
51 #define gimv_prefs_ui_create_frame(label, frame, vbox, parent, expand) \
52 { \
53    frame = gtk_frame_new (label); \
54    gtk_container_set_border_width(GTK_CONTAINER (frame), 0); \
55    gtk_box_pack_start(GTK_BOX (parent), frame, expand, TRUE, 0); \
56    gtk_widget_show (frame); \
57    vbox = gtk_vbox_new (FALSE, 0); \
58    gtk_container_set_border_width (GTK_CONTAINER(frame), 5); \
59    gtk_container_add (GTK_CONTAINER (frame), vbox); \
60    gtk_widget_show (vbox); \
61 }
62 
63 #endif /* __GIMV_PREFS_UI_UTILS_H__ */
64