gwenhywfar  4.6.0beta
w_vlayout.c
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Sun May 16 2010
3  copyright : (C) 2010 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * Please see toplevel file COPYING for license details *
8  ***************************************************************************/
9 
10 
11 
12 
13 
14 static GWENHYWFAR_CB
17  int index,
18  int value,
19  int doSignal) {
20  GtkWidget *g;
21 
23  assert(g);
24 
25  switch(prop) {
27  gtk_widget_set_sensitive(GTK_WIDGET(g), (value==0)?FALSE:TRUE);
28  return 0;
29 
31  gtk_widget_grab_focus(GTK_WIDGET(g));
32  return 0;
33 
34  default:
35  break;
36  }
37 
39  "Function is not appropriate for this type of widget (%s)",
41  return GWEN_ERROR_INVALID;
42 }
43 
44 
45 
46 
47 static GWENHYWFAR_CB
50  int index,
51  int defaultValue) {
52  GtkWidget *g;
53 
55  assert(g);
56 
57  switch(prop) {
59  return (gtk_widget_get_sensitive(GTK_WIDGET(g))==TRUE)?1:0;
60 
62  return (gtk_widget_has_focus(GTK_WIDGET(g))==TRUE)?1:0;
63  return 0;
64 
65  default:
66  break;
67  }
68 
70  "Function is not appropriate for this type of widget (%s)",
72  return defaultValue;
73 }
74 
75 
76 
77 static GWENHYWFAR_CB
80  int index,
81  const char *value,
82  int doSignal) {
83  GtkWidget *g;
84 
86  assert(g);
87 
89  "Function is not appropriate for this type of widget (%s)",
91  return GWEN_ERROR_INVALID;
92 }
93 
94 
95 
96 static GWENHYWFAR_CB
99  int index,
100  const char *defaultValue) {
101  GtkWidget *g;
102 
104  assert(g);
105 
107  "Function is not appropriate for this type of widget (%s)",
109  return defaultValue;
110 }
111 
112 
113 
114 static GWENHYWFAR_CB
116  GtkWidget *g;
117  GtkWidget *gChild;
118  uint32_t cflags;
119 
121  assert(g);
122 
123  gChild=GTK_WIDGET(GWEN_Widget_GetImplData(wChild, GTK2_DIALOG_WIDGET_REAL));
124  assert(gChild);
125 
126  cflags=GWEN_Widget_GetFlags(wChild);
127 
128  gtk_box_pack_start(GTK_BOX(g), gChild,
129  (cflags & GWEN_WIDGET_FLAGS_FILLY)?TRUE:FALSE,
130  (cflags & GWEN_WIDGET_FLAGS_FILLY)?TRUE:FALSE,
131  0);
132 
133  return 0;
134 }
135 
136 
137 
139  GtkWidget *g;
140  uint32_t flags;
141  GWEN_WIDGET *wParent;
142 
143  flags=GWEN_Widget_GetFlags(w);
144  wParent=GWEN_Widget_Tree_GetParent(w);
145 
146  g=gtk_vbox_new((flags & GWEN_WIDGET_FLAGS_EQUAL_HEIGHT)?TRUE:FALSE,
150 
156 
157  if (wParent)
158  GWEN_Widget_AddChildGuiWidget(wParent, w);
159 
160  return 0;
161 }
162 
163