Transmission: update to 2.61
[tomato.git] / release / src / router / transmission / gtk / hig.h
blob5ee7f0eaf1a05d88c8af742eec4dc6e2e8e71a89
1 /*
2 * This file Copyright (C) Mnemosyne LLC
4 * This file is licensed by the GPL version 2. Works owned by the
5 * Transmission project are granted a special exemption to clause 2(b)
6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
10 * $Id: hig.h 13388 2012-07-14 19:26:55Z jordan $
13 #ifndef GTR_HIG_H
14 #define GTR_HIG_H
16 #include <gtk/gtk.h>
18 /**
19 *** utility code for making dialog layout that follows the Gnome HIG.
20 *** see section 8.2.2, Visual Design > Window Layout > Dialogs.
21 **/
23 GtkWidget* hig_workarea_create( void );
25 void hig_workarea_add_section_divider( GtkWidget * table,
26 guint * row );
28 void hig_workarea_add_section_title_widget( GtkWidget * t,
29 guint * row,
30 GtkWidget * w );
32 void hig_workarea_add_section_title( GtkWidget * table,
33 guint * row,
34 const char * section_title );
36 void hig_workarea_add_wide_tall_control( GtkWidget * table,
37 guint * row,
38 GtkWidget * w );
40 void hig_workarea_add_wide_control( GtkWidget * table,
41 guint * row,
42 GtkWidget * w );
44 GtkWidget* hig_workarea_add_wide_checkbutton( GtkWidget * table,
45 guint * row,
46 const char * mnemonic_string,
47 gboolean is_active );
49 void hig_workarea_add_label_w( GtkWidget * table,
50 guint row,
51 GtkWidget * label_widget );
53 GtkWidget* hig_workarea_add_tall_row( GtkWidget * table,
54 guint * row,
55 const char * mnemonic_string,
56 GtkWidget * control,
57 GtkWidget * mnemonic_or_null_for_control );
59 GtkWidget* hig_workarea_add_row( GtkWidget * table,
60 guint * row,
61 const char * mnemonic_string,
62 GtkWidget * control,
63 GtkWidget * mnemonic_or_null_for_control );
65 void hig_workarea_add_row_w( GtkWidget * table,
66 guint * row,
67 GtkWidget * label,
68 GtkWidget * control,
69 GtkWidget * mnemonic_or_null_for_control );
71 enum
73 GUI_PAD_SMALL = 3,
74 GUI_PAD = 6,
75 GUI_PAD_BIG = 12,
76 GUI_PAD_LARGE = 12
79 #endif /* GTR_HIG_H */