diff --git a/ChangeLog b/ChangeLog index 8c83c622b7..e55c5db177 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,26 @@ +Sun May 3 14:55:34 1998 Owen Taylor + + * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about + "glibconfig.h" and another about writing another IRC + client. + +Sat May 2 00:14:05 1998 Owen Taylor + + * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the + parameters to log are doubles. Digital Unix apparently + is missing the argument in its prototype. + +Sun May 3 19:04:46 1998 Owen Taylor + + * gtk/gtklabel.c (gtk_label_state_changed): Don't + force a clear until the widget is actually on + screen. + +Sun May 3 21:32:35 1998 Owen Taylor + + * gdk/gdk.c (gdk_event_translate): Grab with OwnerEvents = False + to make this consistent with the gtk-1-0 tree. + Sun May 3 13:38:22 1998 Owen Taylor * configure.in acheader.h gdk/gdkwindow.c @@ -49,7 +72,7 @@ Fri May 1 16:40:57 1998 Owen Taylor Sun May 3 19:45:09 1998 Tim Janik * gtk/gtkadjustment.c (gtk_adjustment_assimilate_value): new function - to set the adjustments value when there is no current emissioin. + to set the adjustments value when there is no current emission. [ Removed by mutual agreement owt 5/3/1998 ] * gtk/gtksignal.c: added new functions to retrive the number of diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 8c83c622b7..e55c5db177 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,26 @@ +Sun May 3 14:55:34 1998 Owen Taylor + + * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about + "glibconfig.h" and another about writing another IRC + client. + +Sat May 2 00:14:05 1998 Owen Taylor + + * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the + parameters to log are doubles. Digital Unix apparently + is missing the argument in its prototype. + +Sun May 3 19:04:46 1998 Owen Taylor + + * gtk/gtklabel.c (gtk_label_state_changed): Don't + force a clear until the widget is actually on + screen. + +Sun May 3 21:32:35 1998 Owen Taylor + + * gdk/gdk.c (gdk_event_translate): Grab with OwnerEvents = False + to make this consistent with the gtk-1-0 tree. + Sun May 3 13:38:22 1998 Owen Taylor * configure.in acheader.h gdk/gdkwindow.c @@ -49,7 +72,7 @@ Fri May 1 16:40:57 1998 Owen Taylor Sun May 3 19:45:09 1998 Tim Janik * gtk/gtkadjustment.c (gtk_adjustment_assimilate_value): new function - to set the adjustments value when there is no current emissioin. + to set the adjustments value when there is no current emission. [ Removed by mutual agreement owt 5/3/1998 ] * gtk/gtksignal.c: added new functions to retrive the number of diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 8c83c622b7..e55c5db177 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,26 @@ +Sun May 3 14:55:34 1998 Owen Taylor + + * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about + "glibconfig.h" and another about writing another IRC + client. + +Sat May 2 00:14:05 1998 Owen Taylor + + * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the + parameters to log are doubles. Digital Unix apparently + is missing the argument in its prototype. + +Sun May 3 19:04:46 1998 Owen Taylor + + * gtk/gtklabel.c (gtk_label_state_changed): Don't + force a clear until the widget is actually on + screen. + +Sun May 3 21:32:35 1998 Owen Taylor + + * gdk/gdk.c (gdk_event_translate): Grab with OwnerEvents = False + to make this consistent with the gtk-1-0 tree. + Sun May 3 13:38:22 1998 Owen Taylor * configure.in acheader.h gdk/gdkwindow.c @@ -49,7 +72,7 @@ Fri May 1 16:40:57 1998 Owen Taylor Sun May 3 19:45:09 1998 Tim Janik * gtk/gtkadjustment.c (gtk_adjustment_assimilate_value): new function - to set the adjustments value when there is no current emissioin. + to set the adjustments value when there is no current emission. [ Removed by mutual agreement owt 5/3/1998 ] * gtk/gtksignal.c: added new functions to retrive the number of diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 8c83c622b7..e55c5db177 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,26 @@ +Sun May 3 14:55:34 1998 Owen Taylor + + * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about + "glibconfig.h" and another about writing another IRC + client. + +Sat May 2 00:14:05 1998 Owen Taylor + + * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the + parameters to log are doubles. Digital Unix apparently + is missing the argument in its prototype. + +Sun May 3 19:04:46 1998 Owen Taylor + + * gtk/gtklabel.c (gtk_label_state_changed): Don't + force a clear until the widget is actually on + screen. + +Sun May 3 21:32:35 1998 Owen Taylor + + * gdk/gdk.c (gdk_event_translate): Grab with OwnerEvents = False + to make this consistent with the gtk-1-0 tree. + Sun May 3 13:38:22 1998 Owen Taylor * configure.in acheader.h gdk/gdkwindow.c @@ -49,7 +72,7 @@ Fri May 1 16:40:57 1998 Owen Taylor Sun May 3 19:45:09 1998 Tim Janik * gtk/gtkadjustment.c (gtk_adjustment_assimilate_value): new function - to set the adjustments value when there is no current emissioin. + to set the adjustments value when there is no current emission. [ Removed by mutual agreement owt 5/3/1998 ] * gtk/gtksignal.c: added new functions to retrive the number of diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 8c83c622b7..e55c5db177 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,26 @@ +Sun May 3 14:55:34 1998 Owen Taylor + + * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about + "glibconfig.h" and another about writing another IRC + client. + +Sat May 2 00:14:05 1998 Owen Taylor + + * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the + parameters to log are doubles. Digital Unix apparently + is missing the argument in its prototype. + +Sun May 3 19:04:46 1998 Owen Taylor + + * gtk/gtklabel.c (gtk_label_state_changed): Don't + force a clear until the widget is actually on + screen. + +Sun May 3 21:32:35 1998 Owen Taylor + + * gdk/gdk.c (gdk_event_translate): Grab with OwnerEvents = False + to make this consistent with the gtk-1-0 tree. + Sun May 3 13:38:22 1998 Owen Taylor * configure.in acheader.h gdk/gdkwindow.c @@ -49,7 +72,7 @@ Fri May 1 16:40:57 1998 Owen Taylor Sun May 3 19:45:09 1998 Tim Janik * gtk/gtkadjustment.c (gtk_adjustment_assimilate_value): new function - to set the adjustments value when there is no current emissioin. + to set the adjustments value when there is no current emission. [ Removed by mutual agreement owt 5/3/1998 ] * gtk/gtksignal.c: added new functions to retrive the number of diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 8c83c622b7..e55c5db177 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,26 @@ +Sun May 3 14:55:34 1998 Owen Taylor + + * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about + "glibconfig.h" and another about writing another IRC + client. + +Sat May 2 00:14:05 1998 Owen Taylor + + * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the + parameters to log are doubles. Digital Unix apparently + is missing the argument in its prototype. + +Sun May 3 19:04:46 1998 Owen Taylor + + * gtk/gtklabel.c (gtk_label_state_changed): Don't + force a clear until the widget is actually on + screen. + +Sun May 3 21:32:35 1998 Owen Taylor + + * gdk/gdk.c (gdk_event_translate): Grab with OwnerEvents = False + to make this consistent with the gtk-1-0 tree. + Sun May 3 13:38:22 1998 Owen Taylor * configure.in acheader.h gdk/gdkwindow.c @@ -49,7 +72,7 @@ Fri May 1 16:40:57 1998 Owen Taylor Sun May 3 19:45:09 1998 Tim Janik * gtk/gtkadjustment.c (gtk_adjustment_assimilate_value): new function - to set the adjustments value when there is no current emissioin. + to set the adjustments value when there is no current emission. [ Removed by mutual agreement owt 5/3/1998 ] * gtk/gtksignal.c: added new functions to retrive the number of diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 8c83c622b7..e55c5db177 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,26 @@ +Sun May 3 14:55:34 1998 Owen Taylor + + * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about + "glibconfig.h" and another about writing another IRC + client. + +Sat May 2 00:14:05 1998 Owen Taylor + + * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the + parameters to log are doubles. Digital Unix apparently + is missing the argument in its prototype. + +Sun May 3 19:04:46 1998 Owen Taylor + + * gtk/gtklabel.c (gtk_label_state_changed): Don't + force a clear until the widget is actually on + screen. + +Sun May 3 21:32:35 1998 Owen Taylor + + * gdk/gdk.c (gdk_event_translate): Grab with OwnerEvents = False + to make this consistent with the gtk-1-0 tree. + Sun May 3 13:38:22 1998 Owen Taylor * configure.in acheader.h gdk/gdkwindow.c @@ -49,7 +72,7 @@ Fri May 1 16:40:57 1998 Owen Taylor Sun May 3 19:45:09 1998 Tim Janik * gtk/gtkadjustment.c (gtk_adjustment_assimilate_value): new function - to set the adjustments value when there is no current emissioin. + to set the adjustments value when there is no current emission. [ Removed by mutual agreement owt 5/3/1998 ] * gtk/gtksignal.c: added new functions to retrive the number of diff --git a/docs/faq/gtkfaq.sgml b/docs/faq/gtkfaq.sgml index 1e9257d2c7..26d5981fc2 100644 --- a/docs/faq/gtkfaq.sgml +++ b/docs/faq/gtkfaq.sgml @@ -163,6 +163,23 @@ name="http://www.gnome.org">) is using GTK+ to build a free desktop for Linux. Many more programs can be found there. + +I'm looking for an application to write in GTK+. How about an IRC client? +

+ +Ask on gtk-list for suggestions. There are at least four IRC +clients already under development + + +girc. (Included with GNOME) +Bezerk () +gsirc. (Location?) +Gnirc. () + + + How to find, configure, install, and troubleshoot GTK+ @@ -202,8 +219,7 @@ handle the automatically generated Makefiles. -I've compiled and installed GTK+, but I can't get any programs to link -with it! +I've compiled and installed GTK+, but I can't get any programs to link with it!

This problem is most often encountered when the GTK+ libraries can't be found or are the wrong version. Generally, the compiler will complain about an @@ -249,6 +265,47 @@ the libraries libgtk, libgdk, libglib, or libgck. If they do exist, remove them and reinstall gtk+. + +When compiling programs with GTK+, I get compiler error messages about not being able to find The header file "glibconfig.h" was moved to the directory +$exec_prefix/lib/glib/include/. $exec_prefix is the +directory that was specified by giving the --exec-prefix +flags to ./configure when compiling GTK+. It defaults to +$prefix, (specified with --prefix), which in turn defaults +to /usr/local/. + +

This was done because "glibconfig.h" includes architecture +dependent information, and the rest of the include files +are put in $prefix/include, which can be shared between different +architectures. + +

GTK+ includes a shell script, If you are trying to compile an old program, you may +be able to work around the problem by configuring it +with a command line like: + + +CPPFLAGS="-I/usr/local/include/glib/include ./configure + + +

+for Bourne-compatible shells like bash, or for csh variants: + + +setenv CPPFLAGS "-I/usr/local/include/glib/include +./configure + + +

+(Substitute the appropriate value of $exec_prefix for /usr/local.) + When installing The GIMP, configure reports that it can't find GTK.

diff --git a/docs/gtkfaq.sgml b/docs/gtkfaq.sgml index 1e9257d2c7..26d5981fc2 100644 --- a/docs/gtkfaq.sgml +++ b/docs/gtkfaq.sgml @@ -163,6 +163,23 @@ name="http://www.gnome.org">) is using GTK+ to build a free desktop for Linux. Many more programs can be found there. + +I'm looking for an application to write in GTK+. How about an IRC client? +

+ +Ask on gtk-list for suggestions. There are at least four IRC +clients already under development + + +girc. (Included with GNOME) +Bezerk () +gsirc. (Location?) +Gnirc. () + + + How to find, configure, install, and troubleshoot GTK+ @@ -202,8 +219,7 @@ handle the automatically generated Makefiles. -I've compiled and installed GTK+, but I can't get any programs to link -with it! +I've compiled and installed GTK+, but I can't get any programs to link with it!

This problem is most often encountered when the GTK+ libraries can't be found or are the wrong version. Generally, the compiler will complain about an @@ -249,6 +265,47 @@ the libraries libgtk, libgdk, libglib, or libgck. If they do exist, remove them and reinstall gtk+. + +When compiling programs with GTK+, I get compiler error messages about not being able to find The header file "glibconfig.h" was moved to the directory +$exec_prefix/lib/glib/include/. $exec_prefix is the +directory that was specified by giving the --exec-prefix +flags to ./configure when compiling GTK+. It defaults to +$prefix, (specified with --prefix), which in turn defaults +to /usr/local/. + +

This was done because "glibconfig.h" includes architecture +dependent information, and the rest of the include files +are put in $prefix/include, which can be shared between different +architectures. + +

GTK+ includes a shell script, If you are trying to compile an old program, you may +be able to work around the problem by configuring it +with a command line like: + + +CPPFLAGS="-I/usr/local/include/glib/include ./configure + + +

+for Bourne-compatible shells like bash, or for csh variants: + + +setenv CPPFLAGS "-I/usr/local/include/glib/include +./configure + + +

+(Substitute the appropriate value of $exec_prefix for /usr/local.) + When installing The GIMP, configure reports that it can't find GTK.

diff --git a/gdk/gdk.c b/gdk/gdk.c index 68e9b98a21..bfb1070ecc 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -2329,7 +2329,7 @@ gdk_event_translate (GdkEvent *event, gdk_dnd_drag_addwindow((GdkWindow *) gdk_dnd.real_sw); gdk_dnd_drag_begin((GdkWindow *) gdk_dnd.real_sw); xgpret = - XGrabPointer(gdk_display, gdk_dnd.real_sw->xwindow, True, + XGrabPointer(gdk_display, gdk_dnd.real_sw->xwindow, False, ButtonMotionMask | PointerMotionMask | /* PointerMotionHintMask | */ /* HINTME */ ButtonPressMask | ButtonReleaseMask, diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 7836f27077..21b10590d0 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -1226,7 +1226,7 @@ gdk_window_get_colormap (GdkWindow *window) g_return_val_if_fail (window_private->window_type != GDK_WINDOW_PIXMAP, NULL); if (!window_private->destroyed) { - if (window_private->colormap == NULL) + if (window_private->colormap == NULL) { XGetWindowAttributes (window_private->xdisplay, window_private->xwindow, diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c index 68e9b98a21..bfb1070ecc 100644 --- a/gdk/x11/gdkmain-x11.c +++ b/gdk/x11/gdkmain-x11.c @@ -2329,7 +2329,7 @@ gdk_event_translate (GdkEvent *event, gdk_dnd_drag_addwindow((GdkWindow *) gdk_dnd.real_sw); gdk_dnd_drag_begin((GdkWindow *) gdk_dnd.real_sw); xgpret = - XGrabPointer(gdk_display, gdk_dnd.real_sw->xwindow, True, + XGrabPointer(gdk_display, gdk_dnd.real_sw->xwindow, False, ButtonMotionMask | PointerMotionMask | /* PointerMotionHintMask | */ /* HINTME */ ButtonPressMask | ButtonReleaseMask, diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 7836f27077..21b10590d0 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -1226,7 +1226,7 @@ gdk_window_get_colormap (GdkWindow *window) g_return_val_if_fail (window_private->window_type != GDK_WINDOW_PIXMAP, NULL); if (!window_private->destroyed) { - if (window_private->colormap == NULL) + if (window_private->colormap == NULL) { XGetWindowAttributes (window_private->xdisplay, window_private->xwindow, diff --git a/gtk/gtkadjustment.h b/gtk/gtkadjustment.h index 7a5e5810b5..9c6570abe1 100644 --- a/gtk/gtkadjustment.h +++ b/gtk/gtkadjustment.h @@ -73,12 +73,6 @@ void gtk_adjustment_clamp_page (GtkAdjustment *adjustment, gfloat upper); void gtk_adjustment_set_value (GtkAdjustment *adjustment, gfloat value); -void gtk_adjustment_assimilate_value (GtkAdjustment *adjustment, - gfloat value); - - - - #ifdef __cplusplus } diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 412f83a456..7436394481 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -396,13 +396,15 @@ static void gtk_label_state_changed (GtkWidget *widget, guint previous_state) { - GTK_LABEL (widget)->needs_clear = 1; + if (GTK_WIDGET_DRAWABLE (widget)) + GTK_LABEL (widget)->needs_clear = 1; } static void gtk_label_style_set (GtkWidget *widget, GtkStyle *previous_style) { - GTK_LABEL (widget)->needs_clear = 1; + if (GTK_WIDGET_DRAWABLE (widget)) + GTK_LABEL (widget)->needs_clear = 1; } diff --git a/gtk/gtkpreview.c b/gtk/gtkpreview.c index a1ab0da4b4..07d96155d8 100644 --- a/gtk/gtkpreview.c +++ b/gtk/gtkpreview.c @@ -1238,7 +1238,7 @@ gtk_trim_cmap (GtkPreviewClass *klass) nred = nred - 1; else { - tmp = log (ngray) / log (2); + tmp = log ((gdouble)ngray) / log (2.0); if (ngreen >= tmp) ngreen = ngreen - 1; diff --git a/gtk/gtktypeutils.c b/gtk/gtktypeutils.c index 855337247a..0dd7515e1c 100644 --- a/gtk/gtktypeutils.c +++ b/gtk/gtktypeutils.c @@ -249,19 +249,6 @@ gtk_type_describe_tree (GtkType type, indent = old_indent; } -static gint type_isas[512]; - -static void -show_isas (void) -{ - int i; - - for (i=0;i<512;i++) - if (type_isas[i]) - g_print ("%s: %d\n",gtk_type_name(GTK_TYPE_MAKE(GTK_TYPE_OBJECT,i)), - type_isas[i]); -} - gint gtk_type_is_a (GtkType type, GtkType is_a_type) @@ -271,8 +258,6 @@ gtk_type_is_a (GtkType type, if (initialize) gtk_type_init (); - type_isas[GTK_TYPE_SEQNO(is_a_type)]++; - node = g_hash_table_lookup (type_hash_table, &type); while (node) @@ -524,6 +509,4 @@ gtk_type_init_builtin_types (void) gtk_type_register_builtin (builtin_info[i].name, builtin_info[i].parent); } - - ATEXIT(show_isas); }