summaryrefslogtreecommitdiff
path: root/gtk/gtkrc.c
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>1997-12-07 02:34:38 +0000
committerTim Janik <timj@src.gnome.org>1997-12-07 02:34:38 +0000
commit37f6b421f2a9860c353d06c0aaa303edea345dfe (patch)
treef08557eb2ddb0761990e0f82462eb2a88b776a3e /gtk/gtkrc.c
parent7e4ee8cb4f6cdba9adcd4f44de5e9a86563e1c28 (diff)
downloadgtk+-37f6b421f2a9860c353d06c0aaa303edea345dfe.tar.gz
applied jamesa-971010-0 for stability. applied jamesa-971010-2 for a small
* gtkfilesel.c: applied jamesa-971010-0 for stability. * gtkrc.c: applied jamesa-971010-2 for a small optimization. * gtkcheckmenuitem.h: * gtkcheckmenuitem.c: * gtkradiomenuitem.c: * testgtk.c: applied johannes-971113-0 which adds gtk_check_menu_item_set_show_toggle() to change the way check menu items and radio menu items look. -timj
Diffstat (limited to 'gtk/gtkrc.c')
-rw-r--r--gtk/gtkrc.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index 86bc20121b..131dd0b0fb 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -1257,41 +1257,41 @@ gtk_rc_parse_pixmap_path ()
return PARSE_OK;
}
-static void gtk_rc_parse_pixmap_path_string(gchar *pix_path)
+static void
+gtk_rc_parse_pixmap_path_string (gchar *pix_path)
{
gchar *buf;
gint end_offset;
gint start_offset = 0;
gint path_len;
gint path_num;
-
+
/* free the old one, or just add to the old one ? */
for (path_num=0; pixmap_path[path_num]; path_num++)
{
- g_free(pixmap_path[path_num]);
+ g_free (pixmap_path[path_num]);
pixmap_path[path_num] = NULL;
}
-
+
path_num = 0;
+
+ path_len = strlen (pix_path);
+
+ buf = g_strdup (pix_path);
- path_len = strlen(pix_path);
-
- buf = g_strdup(pix_path);
-
- for(end_offset = 0; end_offset <= path_len; end_offset++)
+ for (end_offset = 0; end_offset <= path_len; end_offset++)
{
- if ( (buf[end_offset] == ':') || (end_offset == path_len) )
+ if ((buf[end_offset] == ':') ||
+ (end_offset == path_len))
{
buf[end_offset] = '\0';
- pixmap_path[path_num] = g_strdup(buf + start_offset);
+ pixmap_path[path_num] = g_strdup (buf + start_offset);
path_num++;
pixmap_path[path_num] = NULL;
start_offset = end_offset + 1;
- g_free(buf);
- buf = g_strdup(pix_path);
}
}
- g_free(buf);
+ g_free (buf);
}
static gint