@@ -340,21 +340,21 @@ set sources [file dirname $HomeDir]/generic
340340# # Force the following symbols to exist!
341341# #
342342foreach s {g_malloc0 g_malloc} {
343- set Symbols(TileGtk_ $s ) 1
343+ set Symbols(GtkTtk_ $s ) 1
344344}
345345
346346proc process {data} {
347347 global Symbols
348348 set skip {[^)(\" ,=]+}
349349 foreach lib {gtk gdk xlib g} {
350- foreach s [regexp -inline -all "TileGtk_ ${lib} _${skip} \\\s *\\\( " $data ] {
350+ foreach s [regexp -inline -all "GtkTtk_ ${lib} _${skip} \\\s *\\\( " $data ] {
351351 set Symbols([string trim $s { ()}]) 1
352352 }
353353 }
354354}
355355
356356foreach file [lsort [glob -directory $sources -type f *]] {
357- if {[string match *tileGtk_Symbols * $file ]} continue
357+ if {[string match *gtkTtk_Symbols * $file ]} continue
358358 set fd [open $file ]
359359 fconfigure $fd -encoding utf-8
360360 set data [read $fd ]
@@ -364,7 +364,7 @@ foreach file [lsort [glob -directory $sources -type f *]] {
364364
365365# # Remove definitions...
366366foreach s {g_new0} {
367- unset -nocomplain Symbols(TileGtk_ $s )
367+ unset -nocomplain Symbols(GtkTtk_ $s )
368368}
369369
370370switch $::tcl_platform(platform) {
@@ -379,20 +379,20 @@ switch $::tcl_platform(platform) {
379379 }
380380}
381381foreach s $not_native {
382- unset -nocomplain Symbols(TileGtk_ $s )
382+ unset -nocomplain Symbols(GtkTtk_ $s )
383383}
384384
385385# #
386- # # Generate file tileGtk_Symbols .cpp
386+ # # Generate file gtkTtk_Symbols .cpp
387387# #
388- set fc [open $sources /tileGtk_Symbols .cpp w]
388+ set fc [open $sources /gtkTtk_Symbols .cpp w]
389389fconfigure $fc -encoding iso8859-1
390390puts $fc \
391391{/*
392- * tileGtk_Symbols .cpp
392+ * gtkTtk_Symbols .cpp
393393 * ------------------------
394394 *
395- * This file is part of the Tile-Gtk package, a Tk/Tile based theme that uses
395+ * This file is part of the GtkTtk package, a ttk based theme that uses
396396 * Gtk/GNOME for drawing.
397397 *
398398 * Copyright (C) 2004-2012 by:
@@ -403,8 +403,8 @@ puts $fc \
403403 * Aghia Paraskevi, 153 10, Athens, Greece.
404404 */
405405/* THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT! */
406- # include "tileGtk_Symbols .h"
407- # ifdef TILEGTK_LOAD_GTK_DYNAMICALLY
406+ # include "gtkTtk_Symbols .h"
407+ # ifdef GTKTTK_LOAD_GTK_DYNAMICALLY
408408# if (TCL_MAJOR_VERSION >= 8) && (TCL_MINOR_VERSION >= 6)
409409# define LOAD_SYMBOLS_WITH_TCL
410410# endif
@@ -415,17 +415,17 @@ puts $fc \
415415}
416416
417417# #
418- # # Generate file tileGtk_Symbols .h
418+ # # Generate file gtkTtk_Symbols .h
419419# #
420420
421- set fd [open $sources /tileGtk_Symbols .h w]
421+ set fd [open $sources /gtkTtk_Symbols .h w]
422422fconfigure $fd -encoding iso8859-1
423423puts $fd \
424424{/*
425- * tileGtk_Symbols .h
425+ * gtkTtk_Symbols .h
426426 * --------------------
427427 *
428- * This file is part of the Tile-Gtk package, a Tk/Tile based theme that uses
428+ * This file is part of the GtkTtk package, a ttk based theme that uses
429429 * Gtk/GNOME for drawing.
430430 *
431431 * Copyright (C) 2004-2012 by:
@@ -436,8 +436,8 @@ puts $fd \
436436 * Aghia Paraskevi, 153 10, Athens, Greece.
437437 */
438438/* THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT! */
439- # ifndef _TILEGTK_SYMBOLS
440- # define _TILEGTK_SYMBOLS
439+ # ifndef _GTKTTK_SYMBOLS
440+ # define _GTKTTK_SYMBOLS
441441# include "tcl.h"
442442# ifdef LOAD_SYMBOLS_WITH_TCL
443443# else
@@ -453,20 +453,20 @@ puts $fd \
453453# include <gdk/gdkwin32.h>
454454# endif
455455
456- # ifdef TILEGTK_LOAD_GTK_DYNAMICALLY }
456+ # ifdef GTKTTK_LOAD_GTK_DYNAMICALLY }
457457puts $fd " extern \" C\" \{ "
458458
459459if {1} {
460460 foreach symbol [lsort -dictionary [array names Symbols]] {
461- set gtk_s [string range $symbol 8 end]
461+ set gtk_s [string range $symbol 7 end]
462462 set lib [symbol2lib $gtk_s ]
463463 foreach {t a} [get_function_spec $gtk_s ] {break }
464464 puts $fd " typedef $t (*Ptr_$gtk_s )($a );"
465465 puts $fd " extern Ptr_$gtk_s $symbol ;"
466466 puts $fc " Ptr_$gtk_s $symbol = 0;"
467467 lappend GTKSymbols($lib ) $gtk_s ;
468- # puts $fd "/*\n * $symbol: Stub for [string range $symbol 8 end]\n */"
469- # puts $fd "${symbol}() {\n TILEGTK_ENSURE \n}; /* $symbol */\n"
468+ # puts $fd "/*\n * $symbol: Stub for [string range $symbol 7 end]\n */"
469+ # puts $fd "${symbol}() {\n GTKTTK_ENSURE \n}; /* $symbol */\n"
470470 }
471471}
472472
@@ -475,17 +475,17 @@ puts $fd "\}\n"
475475proc initialise_lib {lib} {
476476 global fc fd GTKSymbols
477477 puts $fd " extern int\
478- TileGtk_InitialiseSymbols_ ${lib} (Tcl_Interp *interp, Tcl_Obj *file_name);"
478+ GtkTtk_InitialiseSymbols_ ${lib} (Tcl_Interp *interp, Tcl_Obj *file_name);"
479479 puts $fc " \n int\
480- TileGtk_InitialiseSymbols_ ${lib} (Tcl_Interp *interp, Tcl_Obj *file_name) \{ "
480+ GtkTtk_InitialiseSymbols_ ${lib} (Tcl_Interp *interp, Tcl_Obj *file_name) \{ "
481481 puts $fc " #ifdef LOAD_SYMBOLS_WITH_TCL"
482482 puts $fc " Tcl_LoadHandle loadHandle;"
483483 puts $fc " int status;"
484484 puts $fc " status = Tcl_LoadFile(interp, file_name, NULL, 0, NULL, &loadHandle);"
485485 puts $fc " if (status != TCL_OK) return status;"
486486 foreach s $GTKSymbols($lib) {
487- puts $fc " TileGtk_ $s = (Ptr_$s ) Tcl_FindSymbol(interp, loadHandle, \" $s \" );"
488- puts $fc " if (TileGtk_ $s == NULL) return TCL_ERROR;"
487+ puts $fc " GtkTtk_ $s = (Ptr_$s ) Tcl_FindSymbol(interp, loadHandle, \" $s \" );"
488+ puts $fc " if (GtkTtk_ $s == NULL) return TCL_ERROR;"
489489 }
490490 puts $fc " #else"
491491 puts $fc " const char *fname = Tcl_GetString(file_name);"
@@ -496,23 +496,23 @@ proc initialise_lib {lib} {
496496 puts $fc " return TCL_ERROR;"
497497 puts $fc " }"
498498 foreach s $GTKSymbols($lib) {
499- puts $fc " if (!g_module_symbol(m, \" $s \" , (gpointer *) &TileGtk_ $s )) {"
499+ puts $fc " if (!g_module_symbol(m, \" $s \" , (gpointer *) &GtkTtk_ $s )) {"
500500 puts $fc " Tcl_SetResult(interp, (char *) \" cannot find symbol: \" , TCL_STATIC);"
501501 puts $fc " Tcl_AppendResult(interp, (char *) \" $s \" , (char *) NULL);"
502502 puts $fc " return TCL_ERROR;"
503503 puts $fc " }"
504504 }
505505 puts $fc " #endif"
506- puts $fc " return TCL_OK;\n\} ; /* TileGtk_InitialiseSymbols_ ${lib} */\n "
507- puts $fd " #define TILEGTK_LAST_SYMBOL_ $lib TileGtk_ $s "
506+ puts $fc " return TCL_OK;\n\} ; /* GtkTtk_InitialiseSymbols_ ${lib} */\n "
507+ puts $fd " #define GTKTTK_LAST_SYMBOL_ $lib GtkTtk_ $s "
508508};# initialise_lib
509509foreach lib [lsort [array names GTKSymbols]] {
510510 initialise_lib $lib
511511}
512512
513513
514514puts $fd {
515- # else /* TILEGTK_LOAD_GTK_DYNAMICALLY */
515+ # else /* GTKTTK_LOAD_GTK_DYNAMICALLY */
516516}
517517
518518# #
@@ -521,16 +521,16 @@ puts $fd {
521521if {1} {
522522 foreach symbol [lsort -dictionary [array names Symbols]] {
523523 puts $fd " #define $symbol \\\n \
524- [ string range $symbol 8 end] "
524+ [ string range $symbol 7 end] "
525525 }
526526}
527527
528528puts $fd \
529- {#endif /* TILEGTK_LOAD_GTK_DYNAMICALLY */
529+ {#endif /* GTKTTK_LOAD_GTK_DYNAMICALLY */
530530
531- # endif /* _TILEGTK_SYMBOLS */}
531+ # endif /* _GTKTTK_SYMBOLS */}
532532close $fd
533533
534534puts $fc \
535- {#endif /* TILEGTK_LOAD_GTK_DYNAMICALLY */}
535+ {#endif /* GTKTTK_LOAD_GTK_DYNAMICALLY */}
536536close $fc
0 commit comments