]> Pileus Git - ~andy/gtk/commitdiff
Merges from the gtk-1-0 branch
authorOwen Taylor <otaylor@gtk.org>
Mon, 4 May 1998 02:10:36 +0000 (02:10 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 4 May 1998 02:10:36 +0000 (02:10 +0000)
Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>

* 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  <otaylor@gtk.org>

* 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  <otaylor@gtk.org>

* gtk/gtklabel.c (gtk_label_state_changed): Don't
force a clear until the widget is actually on
screen.

Hopefully nothing else though CVS think there are a whole
bunch more changed files.

17 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/faq/gtkfaq.sgml
docs/gtkfaq.sgml
gdk/gdk.c
gdk/gdkwindow.c
gdk/x11/gdkmain-x11.c
gdk/x11/gdkwindow-x11.c
gtk/gtkadjustment.h
gtk/gtklabel.c
gtk/gtkpreview.c
gtk/gtktypeutils.c

index 8c83c622b76338469f5455a37b6c5167899a76a5..e55c5db1773fe720463a34449e281305e260a5e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
 
        * configure.in acheader.h gdk/gdkwindow.c 
@@ -49,7 +72,7 @@ Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
 Sun May  3 19:45:09 1998  Tim Janik  <timj@gtk.org>
 
        * 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
index 8c83c622b76338469f5455a37b6c5167899a76a5..e55c5db1773fe720463a34449e281305e260a5e0 100644 (file)
@@ -1,3 +1,26 @@
+Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
 
        * configure.in acheader.h gdk/gdkwindow.c 
@@ -49,7 +72,7 @@ Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
 Sun May  3 19:45:09 1998  Tim Janik  <timj@gtk.org>
 
        * 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
index 8c83c622b76338469f5455a37b6c5167899a76a5..e55c5db1773fe720463a34449e281305e260a5e0 100644 (file)
@@ -1,3 +1,26 @@
+Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
 
        * configure.in acheader.h gdk/gdkwindow.c 
@@ -49,7 +72,7 @@ Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
 Sun May  3 19:45:09 1998  Tim Janik  <timj@gtk.org>
 
        * 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
index 8c83c622b76338469f5455a37b6c5167899a76a5..e55c5db1773fe720463a34449e281305e260a5e0 100644 (file)
@@ -1,3 +1,26 @@
+Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
 
        * configure.in acheader.h gdk/gdkwindow.c 
@@ -49,7 +72,7 @@ Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
 Sun May  3 19:45:09 1998  Tim Janik  <timj@gtk.org>
 
        * 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
index 8c83c622b76338469f5455a37b6c5167899a76a5..e55c5db1773fe720463a34449e281305e260a5e0 100644 (file)
@@ -1,3 +1,26 @@
+Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
 
        * configure.in acheader.h gdk/gdkwindow.c 
@@ -49,7 +72,7 @@ Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
 Sun May  3 19:45:09 1998  Tim Janik  <timj@gtk.org>
 
        * 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
index 8c83c622b76338469f5455a37b6c5167899a76a5..e55c5db1773fe720463a34449e281305e260a5e0 100644 (file)
@@ -1,3 +1,26 @@
+Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
 
        * configure.in acheader.h gdk/gdkwindow.c 
@@ -49,7 +72,7 @@ Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
 Sun May  3 19:45:09 1998  Tim Janik  <timj@gtk.org>
 
        * 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
index 8c83c622b76338469f5455a37b6c5167899a76a5..e55c5db1773fe720463a34449e281305e260a5e0 100644 (file)
@@ -1,3 +1,26 @@
+Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
+
+       * 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  <otaylor@gtk.org>
 
        * configure.in acheader.h gdk/gdkwindow.c 
@@ -49,7 +72,7 @@ Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
 Sun May  3 19:45:09 1998  Tim Janik  <timj@gtk.org>
 
        * 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
index 1e9257d2c7cc131132767ef47f90240273f25624..26d5981fc23ef37a6f60bee8c83861e4c5108e3d 100644 (file)
@@ -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.
 
+<!-- ----------------------------------------------------------------- -->
+<sect1>I'm looking for an application to write in GTK+. How about an IRC client?
+<p> 
+
+Ask on gtk-list for suggestions. There are at least four IRC
+clients already under development
+
+<itemize>
+<item>girc. (Included with GNOME)
+<item>Bezerk (<htmlurl url="http://www.gtk.org/~trog/"
+                       name="http://www.gtk.org/~trog/">)
+<item>gsirc. (Location?)
+<item>Gnirc. (<htmlurl url="http://www.imaginet.fr/~dramboz/gnirc"
+                       name="http://www.imaginet.fr/~dramboz/gnirc">)
+</itemize>
+
+
 <!-- ***************************************************************** -->
 <sect>How to find, configure, install, and troubleshoot GTK+
 
@@ -202,8 +219,7 @@ handle the automatically generated Makefiles.
 
 <!-- ----------------------------------------------------------------- -->
  
-<sect1>I've compiled and installed GTK+, but I can't get any programs to link
-with it!
+<sect1>I've compiled and installed GTK+, but I can't get any programs to link with it!
 <p>
 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+.
 </itemize>
 
+<!-- ----------------------------------------------------------------- -->
+<sect1>When compiling programs with GTK+, I get compiler error messages about not being able to find <tt/"glibconfig.h"/.
+
+<p> 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/.
+
+<p> 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. 
+
+<p> GTK+ includes a shell script, <tt/gtk-config/, that
+makes it easy to find out the correct include paths.
+The GTK+ tutorial includes an example of using <tt/gtk-config/
+for simple compilation from the command line. For information
+about more complicated configuration, see the file
+docs/gtk-config.txt in the GTK+ distribution.
+
+<p> 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: 
+
+<tscreen><verb>
+CPPFLAGS="-I/usr/local/include/glib/include ./configure
+</verb></tscreen>
+
+<p>
+for Bourne-compatible shells like bash, or for csh variants:
+
+<tscreen><verb>
+setenv CPPFLAGS "-I/usr/local/include/glib/include 
+./configure
+</verb></tscreen>
+
+<p>
+(Substitute the appropriate value of $exec_prefix for /usr/local.)
+
 <!-- ----------------------------------------------------------------- -->
 <sect1>When installing The GIMP, configure reports that it can't find GTK.
 <p>
index 1e9257d2c7cc131132767ef47f90240273f25624..26d5981fc23ef37a6f60bee8c83861e4c5108e3d 100644 (file)
@@ -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.
 
+<!-- ----------------------------------------------------------------- -->
+<sect1>I'm looking for an application to write in GTK+. How about an IRC client?
+<p> 
+
+Ask on gtk-list for suggestions. There are at least four IRC
+clients already under development
+
+<itemize>
+<item>girc. (Included with GNOME)
+<item>Bezerk (<htmlurl url="http://www.gtk.org/~trog/"
+                       name="http://www.gtk.org/~trog/">)
+<item>gsirc. (Location?)
+<item>Gnirc. (<htmlurl url="http://www.imaginet.fr/~dramboz/gnirc"
+                       name="http://www.imaginet.fr/~dramboz/gnirc">)
+</itemize>
+
+
 <!-- ***************************************************************** -->
 <sect>How to find, configure, install, and troubleshoot GTK+
 
@@ -202,8 +219,7 @@ handle the automatically generated Makefiles.
 
 <!-- ----------------------------------------------------------------- -->
  
-<sect1>I've compiled and installed GTK+, but I can't get any programs to link
-with it!
+<sect1>I've compiled and installed GTK+, but I can't get any programs to link with it!
 <p>
 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+.
 </itemize>
 
+<!-- ----------------------------------------------------------------- -->
+<sect1>When compiling programs with GTK+, I get compiler error messages about not being able to find <tt/"glibconfig.h"/.
+
+<p> 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/.
+
+<p> 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. 
+
+<p> GTK+ includes a shell script, <tt/gtk-config/, that
+makes it easy to find out the correct include paths.
+The GTK+ tutorial includes an example of using <tt/gtk-config/
+for simple compilation from the command line. For information
+about more complicated configuration, see the file
+docs/gtk-config.txt in the GTK+ distribution.
+
+<p> 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: 
+
+<tscreen><verb>
+CPPFLAGS="-I/usr/local/include/glib/include ./configure
+</verb></tscreen>
+
+<p>
+for Bourne-compatible shells like bash, or for csh variants:
+
+<tscreen><verb>
+setenv CPPFLAGS "-I/usr/local/include/glib/include 
+./configure
+</verb></tscreen>
+
+<p>
+(Substitute the appropriate value of $exec_prefix for /usr/local.)
+
 <!-- ----------------------------------------------------------------- -->
 <sect1>When installing The GIMP, configure reports that it can't find GTK.
 <p>
index 68e9b98a217fe3030fb12562e3f37e1f195be2b1..bfb1070ecc8eb1cbfad3da58dfae67c85d8766c0 100644 (file)
--- 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,
index 7836f270771d464ce78c99a3760ea48ab85ea913..21b10590d03cf7e66a4ddf3d268f841bcb95ed2b 100644 (file)
@@ -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,
index 68e9b98a217fe3030fb12562e3f37e1f195be2b1..bfb1070ecc8eb1cbfad3da58dfae67c85d8766c0 100644 (file)
@@ -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,
index 7836f270771d464ce78c99a3760ea48ab85ea913..21b10590d03cf7e66a4ddf3d268f841bcb95ed2b 100644 (file)
@@ -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,
index 7a5e5810b5809af9c0eba0de3f80e0e4b6cad991..9c6570abe1d355e5645301eeab182eccdaea9c5e 100644 (file)
@@ -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
 }
index 412f83a456974fd95fa7c044e4ace796c1836757..74363944817e664359939c2472879acad4c8f1a5 100644 (file)
@@ -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;
 }
 
index a1ab0da4b442d44a84d3f4a671110f2587341fb0..07d96155d8fd91bfad188608c39a6713ec392d9c 100644 (file)
@@ -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;
index 855337247a6345d3d18b133474077b924620ebd5..0dd7515e1c72cf7c2c5bdc667a009311bafcbfca 100644 (file)
@@ -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);
 }