Commit 315affdf authored by Tim Janik's avatar Tim Janik
Browse files

minor cleanups and merges

parent f75d8b0c
Overview of Changes in GTK+ 1.1.0:
* Significant speedups to widget creation, destruction and signal emissions
* Significant speedups to widget creation and destruction through caching
colormap and visual queries to the XServer.
* Speedups for type creation and especially gtk_type_is_a() checks.
* Speedups in signal lookup and creation and especaially with signal
emissions.
* Minor speedups with object data allocation and destruction.
* Newly included file gtkfeatures.h which defines compatibility macros to
test for certain API features upon program compilation.
* New widget GtkCTree
* Upgrade to libtool-1.2
* Lots of bug fixes, including one that fixed a major memory leak
......
......@@ -61,10 +61,13 @@ int
main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.gtktest");
if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("$min_gtk_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_gtk_version");
exit(1);
}
......
......@@ -36,17 +36,19 @@ extern "C" {
*/
#define GTK_HAVE_CONTAINER_FOCUS_ADJUSTMENTS 1-0-1
/* from now on we export the gtk_signal_init() function
/* new macros for checking of class types
*/
#define GTK_HAVE_SIGNAL_INIT 1-1-0
/* we have a new gtk_signal_emitv*() interface
*/
#define GTK_HAVE_SIGNAL_EMITV 1-1-0
#define GTK_HAVE_IS_CLASS 1-1-0
/* "signal-name" is now an alias for "signal_name"
/* export the gtk_signal_init() function
* new gtk_signal_n_emissions*() functions
* "signal-name" is now an alias for "signal_name"
* new gtk_signal_emitv*() interface
*/
#define GTK_HAVE_SIGNAL_INIT 1-1-0
#define GTK_HAVE_N_EMISSIONS 1-1-0
#define GTK_HAVE_SIGNAL_LISP_SYNTAX 1-1-0
#define GTK_HAVE_SIGNAL_EMITV 1-1-0
......
......@@ -36,17 +36,19 @@ extern "C" {
*/
#define GTK_HAVE_CONTAINER_FOCUS_ADJUSTMENTS 1-0-1
/* from now on we export the gtk_signal_init() function
/* new macros for checking of class types
*/
#define GTK_HAVE_SIGNAL_INIT 1-1-0
/* we have a new gtk_signal_emitv*() interface
*/
#define GTK_HAVE_SIGNAL_EMITV 1-1-0
#define GTK_HAVE_IS_CLASS 1-1-0
/* "signal-name" is now an alias for "signal_name"
/* export the gtk_signal_init() function
* new gtk_signal_n_emissions*() functions
* "signal-name" is now an alias for "signal_name"
* new gtk_signal_emitv*() interface
*/
#define GTK_HAVE_SIGNAL_INIT 1-1-0
#define GTK_HAVE_N_EMISSIONS 1-1-0
#define GTK_HAVE_SIGNAL_LISP_SYNTAX 1-1-0
#define GTK_HAVE_SIGNAL_EMITV 1-1-0
......
......@@ -55,10 +55,10 @@ extern "C" {
/* Determines whether `obj' and `klass' are a type of `otype'.
*/
#define GTK_CHECK_TYPE(obj,otype) ( \
GTK_TYPE_IS_A (((GtkObject*) (obj))->klass->type, (otype)) \
gtk_type_is_a (((GtkObject*) (obj))->klass->type, (otype)) \
)
#define GTK_CHECK_CLASS_TYPE(klass,otype) ( \
GTK_TYPE_IS_A (((GtkObjectClass*) (klass))->type, (otype)) \
gtk_type_is_a (((GtkObjectClass*) (klass))->type, (otype)) \
)
/* Macro for casting a pointer to a GtkObject or GtkObjectClass pointer.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment