pike.git / src / post_modules / GTK2 / source / global.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/global.pre:143:    if( !PGTK_ISSTR( Pike_sp-args ) ||    !PGTK_ISSTR( Pike_sp-args+1 ) )    Pike_error("Illegal argument to Gnome.init()\n");    id = PGTK_GETSTR( Pike_sp-args );    vers = PGTK_GETSTR( Pike_sp-args+1 );    data = get_argv( &argc, args-2 );    }    pgnome2_is_setup = 1;    pgtk2_is_setup = 1;    -  gtk_set_locale(); +  /* NOTE: pike is not able to run with locale other than "C" at +  * this point. We can remove this call once pike is locale agnostic. +  */ +  gtk_disable_setlocale();      /*    if( args == 4 )    applet_widget_init( id, vers, argc, data, NULL, flags, NULL );    else   */    gnome_program_init(id,vers,LIBGNOMEUI_MODULE,argc,data,GNOME_PARAM_NONE);       backend_cb = (void *)add_backend_callback( backend_callback, 0, 0);   
pike.git/src/post_modules/GTK2/source/global.pre:250:    if (args)    data=get_argv(&argc,args);    else {    data=g_malloc(sizeof(char *)*2);    if (data==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("setup_gtk",sizeof(char *)*2);    data[0]=g_strdup("Pike GTK");    argc=1;    }    pgtk2_is_setup=1; -  gtk_set_locale(); +  /* NOTE: pike is not able to run with locale other than "C" at +  * this point. We can remove this call once pike is locale agnostic. +  */ +  gtk_disable_setlocale();    gtk_init(&argc,&data);   #if GLIB_MAJOR_VERISON > 2 || GLIB_MINOR_VERSION < 36    g_type_init();   #endif       backend_cb=(void *)add_backend_callback(backend_callback,0,0);    pgtk2_pop_n_elems(args);    push_and_free_argv(data,argc,0);   }