42 gtk_widget_set_sensitive(GTK_WIDGET(g), (value==0)?FALSE:TRUE);
46 gtk_widget_grab_focus(GTK_WIDGET(g));
62 gtk_progress_bar_set_fraction(g, d);
63 snprintf(numbuf,
sizeof(numbuf)-1,
"%d %%", (
int)(d*100.0));
64 numbuf[
sizeof(numbuf)-1]=0;
65 gtk_progress_bar_set_text(g, numbuf);
68 gtk_progress_bar_set_fraction(g, 0.0);
69 gtk_progress_bar_set_text(g,
"");
81 gtk_progress_bar_set_fraction(g, d);
82 snprintf(numbuf,
sizeof(numbuf)-1,
"%d %%", (
int)(d*100.0));
83 numbuf[
sizeof(numbuf)-1]=0;
84 gtk_progress_bar_set_text(g, numbuf);
87 gtk_progress_bar_set_fraction(g, 0.0);
88 gtk_progress_bar_set_text(g,
"");
100 gtk_progress_bar_set_fraction(g, d);
101 snprintf(numbuf,
sizeof(numbuf)-1,
"%d %%", (
int)(d*100.0));
102 numbuf[
sizeof(numbuf)-1]=0;
103 gtk_progress_bar_set_text(g, numbuf);
107 gtk_progress_bar_set_fraction(g, 0.0);
108 gtk_progress_bar_set_text(g,
"");
117 "Function is not appropriate for this type of widget (%s)",
142 return (gtk_widget_get_sensitive(GTK_WIDGET(g))==TRUE)?1:0;
145 return (gtk_widget_has_focus(GTK_WIDGET(g))==TRUE)?1:0;
167 "Function is not appropriate for this type of widget (%s)",
181 "Function is not appropriate for this type of widget (%s)",
192 const char *defaultValue) {
194 "Function is not appropriate for this type of widget (%s)",
218 wParent=GWEN_Widget_Tree_GetParent(w);
220 g=gtk_progress_bar_new();
static GWENHYWFAR_CB const char * Gtk3Gui_WProgressBar_GetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
static GWENHYWFAR_CB int Gtk3Gui_WProgressBar_SetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
#define GWEN_ERROR_INVALID
#define GTK3_DIALOG_WIDGET_REAL
int Gtk3Gui_WProgressBar_Setup(GWEN_WIDGET *w)
#define GTK3_DIALOG_WIDGET_CONTENT
static GWENHYWFAR_CB int Gtk3Gui_WProgressBar_GetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
#define GWEN_FREE_OBJECT(varname)
#define DBG_WARN(dbg_logger, format, args...)
#define GWEN_NEW_OBJECT(typ, varname)
static void GWENHYWFAR_CB Gtk3Gui_WProgressBar_FreeData(void *bp, void *p)
static GWENHYWFAR_CB int Gtk3Gui_WProgressBar_SetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
#define GWEN_INHERIT(bt, t)
#define GWEN_INHERIT_SETDATA(bt, t, element, data, fn)
#define GWEN_INHERIT_GETDATA(bt, t, element)