gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about),
"Free Software Foundation");
- gtk_about_dialog_set_translator_credits
+ gtk_about_dialog_set_translator_credits
(
GTK_ABOUT_DIALOG (about),
/* TRANSLATORS: Do not translate this string. Instead, put the names of the people
{
gchar **tokens = NULL;
const int maxtokens = 5;
- int idx = 0;
+ int idx ;
argv[1] = g_strdup_printf ("file://%s#%s",
relocate (DOCDIR "/pspp.xml"), page);
/* The page will be translated to the htmlfilename
QUICK-CLUSTER QUICK-CLUSTER.html
which is valid for the multiple page html doc*/
tokens = g_strsplit (page, "#", maxtokens);
- for(;tokens[idx] && idx < maxtokens;idx++);
+ for (idx = 0; idx < maxtokens && tokens[idx]; idx++)
+ ;
htmlfilename = g_strdup_printf ("%s.html", tokens[idx-1]);
g_strfreev (tokens);
}
GtkWidget *help_ref = gtk_menu_item_new_with_mnemonic (_("_Reference Manual"));
GtkAccelGroup *accel_group = gtk_accel_group_new ();
-
+
gtk_window_add_accel_group (toplevel, accel_group);
gtk_widget_add_accelerator (help_ref,
g_signal_connect (help_about, "activate", G_CALLBACK (about_new), toplevel);
g_signal_connect (help_ref, "activate", G_CALLBACK (reference_manual), NULL);
-
+
g_object_set (menuitem, "submenu", menu, NULL);
gtk_widget_show_all (menuitem);
-
+
return menuitem;
}