43 gtk_widget_set_sensitive(GTK_WIDGET(g), (value==0)?FALSE:TRUE);
47 gtk_widget_grab_focus(GTK_WIDGET(g));
63 gtk_progress_bar_set_fraction(g, d);
64 snprintf(numbuf,
sizeof(numbuf)-1,
"%d %%", (
int)(d*100.0));
65 numbuf[
sizeof(numbuf)-1]=0;
66 gtk_progress_bar_set_text(g, numbuf);
69 gtk_progress_bar_set_fraction(g, 0.0);
70 gtk_progress_bar_set_text(g,
"");
82 gtk_progress_bar_set_fraction(g, d);
83 snprintf(numbuf,
sizeof(numbuf)-1,
"%d %%", (
int)(d*100.0));
84 numbuf[
sizeof(numbuf)-1]=0;
85 gtk_progress_bar_set_text(g, numbuf);
88 gtk_progress_bar_set_fraction(g, 0.0);
89 gtk_progress_bar_set_text(g,
"");
101 gtk_progress_bar_set_fraction(g, d);
102 snprintf(numbuf,
sizeof(numbuf)-1,
"%d %%", (
int)(d*100.0));
103 numbuf[
sizeof(numbuf)-1]=0;
104 gtk_progress_bar_set_text(g, numbuf);
108 gtk_progress_bar_set_fraction(g, 0.0);
109 gtk_progress_bar_set_text(g,
"");
118 "Function is not appropriate for this type of widget (%s)",
144 return (gtk_widget_get_sensitive(GTK_WIDGET(g))==TRUE)?1:0;
147 return (gtk_widget_has_focus(GTK_WIDGET(g))==TRUE)?1:0;
169 "Function is not appropriate for this type of widget (%s)",
184 "Function is not appropriate for this type of widget (%s)",
195 const char *defaultValue)
198 "Function is not appropriate for this type of widget (%s)",
224 wParent=GWEN_Widget_Tree_GetParent(w);
226 g=gtk_progress_bar_new();
#define DBG_WARN(dbg_logger, format,...)
@ GWEN_DialogProperty_MinValue
@ GWEN_DialogProperty_MaxValue
@ GWEN_DialogProperty_Height
@ GWEN_DialogProperty_Enabled
@ GWEN_DialogProperty_Value
@ GWEN_DialogProperty_Focus
@ GWEN_DialogProperty_Width
#define GWEN_ERROR_INVALID
static GWENHYWFAR_CB int Gtk3Gui_WProgressBar_GetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, int defaultValue)
static GWENHYWFAR_CB int Gtk3Gui_WProgressBar_SetCharProperty(GWEN_WIDGET *w, GWEN_UNUSED GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, GWEN_UNUSED const char *value, GWEN_UNUSED int doSignal)
static GWENHYWFAR_CB const char * Gtk3Gui_WProgressBar_GetCharProperty(GWEN_WIDGET *w, GWEN_UNUSED GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, const char *defaultValue)
static void GWENHYWFAR_CB Gtk3Gui_WProgressBar_FreeData(GWEN_UNUSED void *bp, void *p)
static GWENHYWFAR_CB int Gtk3Gui_WProgressBar_SetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, GWEN_UNUSED int index, int value, GWEN_UNUSED int doSignal)
int Gtk3Gui_WProgressBar_Setup(GWEN_WIDGET *w)
#define GTK3_DIALOG_WIDGET_CONTENT
#define GTK3_DIALOG_WIDGET_REAL
#define GWEN_INHERIT_SETDATA(bt, t, element, data, fn)
#define GWEN_INHERIT(bt, t)
#define GWEN_INHERIT_GETDATA(bt, t, element)
#define GWEN_FREE_OBJECT(varname)
#define GWEN_NEW_OBJECT(typ, varname)