projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Whitespace changes only.
[pspp]
/
src
/
ui
/
gui
/
widget-io.c
diff --git
a/src/ui/gui/widget-io.c
b/src/ui/gui/widget-io.c
index da9c9cb1e868f7469c152a62307790779a5829d3..9612e44e7f382b05fde510c1a832cc7a7518b1f5 100644
(file)
--- a/
src/ui/gui/widget-io.c
+++ b/
src/ui/gui/widget-io.c
@@
-48,14
+48,14
@@
widget_printf (const gchar *fmt, ...)
va_list ap;
const char *s = fmt;
va_list ap;
const char *s = fmt;
- if (
0 != printf_parse (fmt, &d, &a)
)
+ if (
0 != printf_parse (fmt, &d, &a)
)
return NULL;
widgets = xcalloc (d.count, sizeof (*widgets));
va_start (ap, fmt);
return NULL;
widgets = xcalloc (d.count, sizeof (*widgets));
va_start (ap, fmt);
- for (i = 0 ; i < d.count ; ++i
)
+ for (i = 0 ; i < d.count ; ++i)
{
{
- if (
d.dir[i].conversion != '%')
+ if (d.dir[i].conversion != '%')
widgets[i] = va_arg (ap, GtkWidget *);
}
va_end (ap);
widgets[i] = va_arg (ap, GtkWidget *);
}
va_end (ap);
@@
-65,13
+65,13
@@
widget_printf (const gchar *fmt, ...)
output = g_string_sized_new (strlen (fmt));
output = g_string_sized_new (strlen (fmt));
- for (i = 0 ; i < d.count ; ++i
)
+ for (i = 0 ; i < d.count ; ++i)
{
char_directive dir = d.dir[i];
GtkWidget *w ;
const gchar *entry_text;
{
char_directive dir = d.dir[i];
GtkWidget *w ;
const gchar *entry_text;
- if (
dir.conversion == '%')
+ if (dir.conversion == '%')
{
s++;
continue;
{
s++;
continue;
@@
-80,7
+80,7
@@
widget_printf (const gchar *fmt, ...)
w = widgets [dir.arg_index];
entry_text = gtk_entry_get_text (GTK_ENTRY (w));
w = widgets [dir.arg_index];
entry_text = gtk_entry_get_text (GTK_ENTRY (w));
- if (
dir.dir_start > s
)
+ if (
dir.dir_start > s
)
g_string_append_len (output, s, dir.dir_start - s);
s = dir.dir_end;
g_string_append_len (output, s, dir.dir_start - s);
s = dir.dir_end;