annotate gui/dialog/tools.c @ 35969:73a7d9100fe0

Change variable definitions to const. Additionally, rename fsThatDir fsThisDir.
author ib
date Wed, 27 Mar 2013 18:58:32 +0000
parents 3c901704a27c
children e7bc0058139a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
35526
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
1 /*
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
2 * This file is part of MPlayer.
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
3 *
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
7 * (at your option) any later version.
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
8 *
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
12 * GNU General Public License for more details.
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
13 *
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License along
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
17 */
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
18
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
19 #include <gdk/gdkkeysyms.h>
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
20 #include <gtk/gtk.h>
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
21
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
22 #include "tools.h"
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
23
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
24 void WidgetDestroy( GtkWidget * widget,GtkWidget ** widget_pointer )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
25 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
26 if ( !widget_pointer ) return;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
27 gtk_widget_hide( *widget_pointer );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
28 gtk_widget_destroy( *widget_pointer );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
29 *widget_pointer=NULL;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
30 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
31
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
32 GtkWidget * AddDialogFrame( GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
33 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
34 GtkWidget * frame;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
35 frame=AddFrame( NULL,GTK_SHADOW_IN,parent,1 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
36 gtk_container_set_border_width( GTK_CONTAINER( frame ),1 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
37 frame=AddFrame( NULL,GTK_SHADOW_NONE,frame,1 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
38 frame=AddFrame( NULL,GTK_SHADOW_ETCHED_OUT,frame,1 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
39 frame=AddFrame( NULL,GTK_SHADOW_NONE,frame,1 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
40 return frame;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
41 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
42
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
43 GtkWidget * AddFrame( const char * title,int type,GtkWidget * parent,int add )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
44 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
45 GtkWidget * frame = NULL;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
46 frame=gtk_frame_new( title );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
47 gtk_widget_set_name( frame,"frame" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
48 gtk_widget_show( frame );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
49 gtk_frame_set_shadow_type( GTK_FRAME( frame ),type );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
50 if ( !parent ) return frame;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
51 if ( add ) gtk_container_add( GTK_CONTAINER( parent ),frame );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
52 else gtk_box_pack_start( GTK_BOX( parent ),frame,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
53 return frame;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
54 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
55
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
56 GtkWidget * AddLabel( const char * title,GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
57 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
58 GtkWidget * label;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
59 label=gtk_label_new( title );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
60 gtk_widget_set_name( label,"label" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
61 gtk_widget_show( label );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
62 if ( parent ) gtk_box_pack_start( GTK_BOX( parent ),label,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
63 gtk_misc_set_alignment( GTK_MISC( label ),0,0.5 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
64 gtk_misc_set_padding( GTK_MISC( label ),4,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
65 return label;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
66 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
67
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
68 GtkWidget * AddVBox( GtkWidget * parent,int type )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
69 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
70 GtkWidget * vbox;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
71 vbox=gtk_vbox_new( FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
72 gtk_widget_set_name( vbox,"vbox" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
73 gtk_widget_show( vbox );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
74 if ( parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
75 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
76 if ( type ) gtk_box_pack_start( GTK_BOX( parent ),vbox,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
77 else gtk_container_add( GTK_CONTAINER( parent ),vbox );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
78 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
79 return vbox;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
80 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
81
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
82 GtkWidget * AddHBox( GtkWidget * parent,int type )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
83 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
84 GtkWidget * hbox;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
85 hbox=gtk_hbox_new( FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
86 gtk_widget_set_name( hbox,"hbox" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
87 gtk_widget_show( hbox );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
88 if ( parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
89 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
90 if ( type ) gtk_box_pack_start( GTK_BOX( parent ),hbox,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
91 else gtk_container_add( GTK_CONTAINER( parent ),hbox );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
92 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
93 return hbox;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
94 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
95
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
96 GtkWidget * AddCheckButton( const char * title, GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
97 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
98 GtkWidget * CB;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
99 CB=gtk_check_button_new_with_label( title );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
100 gtk_widget_set_name( CB,"CB" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
101 gtk_widget_show( CB );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
102 gtk_box_pack_start( GTK_BOX( parent ),CB,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
103 return CB;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
104 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
105
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
106 GtkWidget * AddRadioButton( const char * title,GSList ** group,GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
107 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
108 GtkWidget * RB;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
109 RB=gtk_radio_button_new_with_label( *group,title );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
110 *group=gtk_radio_button_group( GTK_RADIO_BUTTON( RB ) );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
111 gtk_widget_set_name( RB,"RB" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
112 gtk_widget_show( RB );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
113 gtk_box_pack_start( GTK_BOX( parent ),RB,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
114 return RB;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
115 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
116
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
117 GtkWidget * AddSpinButton( const char * title,GtkAdjustment * adj,GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
118 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
119 GtkWidget * SB;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
120 GtkWidget * label;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
121 label=gtk_label_new( title );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
122 gtk_misc_set_alignment( GTK_MISC( label ),0,0.5 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
123 gtk_box_pack_start( GTK_BOX( parent ),label,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
124 gtk_widget_show( label );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
125 SB=gtk_spin_button_new( adj,0,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
126 gtk_widget_set_name( SB,"SB" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
127 gtk_box_pack_start( GTK_BOX( parent ),SB,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
128 gtk_widget_show( SB );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
129 return SB;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
130 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
131
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
132 GtkWidget * AddButton( const char * title,GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
133 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
134 GtkWidget * B;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
135 B=gtk_button_new_with_label( title );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
136 gtk_widget_set_name( B,"B" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
137 gtk_widget_show( B );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
138 gtk_container_add( GTK_CONTAINER( parent ),B );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
139 return B;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
140 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
141
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
142 GtkWidget * AddHSeparator( GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
143 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
144 GtkWidget * hseparator;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
145 hseparator=gtk_hseparator_new();
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
146 gtk_widget_set_name( hseparator,"hseparator1" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
147 gtk_widget_show( hseparator );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
148 gtk_box_pack_start( GTK_BOX( parent ),hseparator,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
149 gtk_widget_set_usize( hseparator,-2,6 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
150 return hseparator;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
151 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
152
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
153 GtkWidget * AddHButtonBox( GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
154 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
155 GtkWidget * hbuttonbox;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
156 hbuttonbox=gtk_hbutton_box_new();
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
157 gtk_widget_set_name( hbuttonbox,"hbuttonbox" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
158 gtk_widget_show( hbuttonbox );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
159 gtk_box_pack_start( GTK_BOX( parent ),hbuttonbox,FALSE,FALSE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
160 gtk_button_box_set_child_size( GTK_BUTTON_BOX( hbuttonbox ),85,20 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
161 return hbuttonbox;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
162 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
163
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
164 GtkWidget * AddHScaler( GtkAdjustment * adj,GtkWidget * parent,int digit )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
165 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
166 GtkWidget * HS;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
167 HS=gtk_hscale_new( adj );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
168 gtk_widget_set_name( HS,"HS" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
169 gtk_widget_show( HS );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
170 if ( parent ) gtk_box_pack_start( GTK_BOX( parent ),HS,TRUE,TRUE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
171 gtk_scale_set_value_pos( GTK_SCALE( HS ),GTK_POS_RIGHT );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
172 gtk_scale_set_digits( GTK_SCALE( HS ),digit );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
173 return HS;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
174 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
175
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
176 GtkWidget * AddVScaler( GtkAdjustment * adj,GtkWidget * parent,int digit )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
177 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
178 GtkWidget * VS;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
179 VS=gtk_vscale_new( adj );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
180 gtk_widget_set_name( VS,"VS" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
181 gtk_widget_show( VS );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
182 if ( parent ) gtk_box_pack_start( GTK_BOX( parent ),VS,TRUE,TRUE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
183 // gtk_scale_set_value_pos( GTK_SCALE( VS ),GTK_POS_RIGHT );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
184 if ( digit == -1 ) gtk_scale_set_draw_value( GTK_SCALE( VS ),FALSE );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
185 else gtk_scale_set_digits( GTK_SCALE( VS ),digit );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
186 return VS;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
187 }
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
188
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
189 GtkWidget * AddComboBox( GtkWidget * parent )
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
190 {
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
191 GtkWidget * CB;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
192 CB=gtk_combo_new();
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
193 gtk_widget_set_name( CB,"CB" );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
194 gtk_widget_show( CB );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
195 if ( parent ) gtk_box_pack_start( GTK_BOX( parent ),CB,TRUE,TRUE,0 );
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
196 return CB;
3c901704a27c Rebuild GUI directory structure.
ib
parents:
diff changeset
197 }