]> Pileus Git - ~andy/gtk/log
~andy/gtk
21 years agoDon't include <winsock.h> on Cygwin (#91654, Masahiro Sakai).
Tor Lillqvist [Sun, 25 Aug 2002 20:28:47 +0000 (20:28 +0000)]
Don't include <winsock.h> on Cygwin (#91654, Masahiro Sakai).

2002-08-25  Tor Lillqvist  <tml@iki.fi>

* gtk/gtkfilesel.c: Don't include <winsock.h> on Cygwin (#91654,
Masahiro Sakai).

21 years agoCompile gtk_init_abi_check and gtk_init_check_abi_check when on
Tor Lillqvist [Sun, 25 Aug 2002 19:27:24 +0000 (19:27 +0000)]
Compile gtk_init_abi_check and gtk_init_check_abi_check when on

2002-08-25  Tor Lillqvist  <tml@iki.fi>

* gtk/gtkmain.c: Compile gtk_init_abi_check and
gtk_init_check_abi_check when on G_PLATFORM_WIN32, not just on
G_OS_WIN32, to match gtkmain.h (#91649, Masahiro Sakai).
(check_sizeof_GtkWIndow, check_sizeof_GtkBox): Mention the
-mms-bitfields swicth in addition to -fnative-struct.

21 years agoupdate packaging script for current tutorial
BST 2002 Tony Gale [Sun, 25 Aug 2002 11:28:42 +0000 (11:28 +0000)]
update packaging script for current tutorial

Sun Aug 25 11:58:27 BST 2002  Tony Gale <gale@gtk.org>

* docs/tutorial/package-db-tutorial.sh:
update packaging script for current tutorial

* docs/tutorial/images/*.eps: New Files
EPS versions of the tutorial images

21 years agoInclude gtkbox.h and gtkwindow.h on Win32, as the defines for struct
Tor Lillqvist [Sat, 24 Aug 2002 23:06:16 +0000 (23:06 +0000)]
Include gtkbox.h and gtkwindow.h on Win32, as the defines for struct

2002-08-25  Tor Lillqvist  <tml@iki.fi>

* gtk/gtkmain.h: Include gtkbox.h and gtkwindow.h on Win32, as the
defines for struct packing checks use sizeof() on stuff from
these. (#84211, Andreas Holzmann)

21 years agoAdd gtk_win32res_lo. (#87101, J. Ali Harlow)
Tor Lillqvist [Sat, 24 Aug 2002 22:54:07 +0000 (22:54 +0000)]
Add gtk_win32res_lo. (#87101, J. Ali Harlow)

2002-08-25  Tor Lillqvist  <tml@iki.fi>

* gtk/Makefile.am (libgtk_win32_2_0_la_DEPENDENCIES): Add
gtk_win32res_lo. (#87101, J. Ali Harlow)

* gdk-pixbuf/Makefile.am (libgdk_pixbuf_2_0_la_DEPENDENCIES): Add
gdk_pixbuf_win32res_lo. (#87101, J. Ali Harlow)

21 years agogdk/gdkevents.c gdk/gdkinternals.h gdk/x11/gdkevents-x11.c Move the
Tor Lillqvist [Sat, 24 Aug 2002 22:03:46 +0000 (22:03 +0000)]
gdk/gdkevents.c gdk/gdkinternals.h gdk/x11/gdkevents-x11.c Move the

2002-08-25  Tor Lillqvist  <tml@iki.fi>

* gdk/gdkevents.c
* gdk/gdkinternals.h
* gdk/x11/gdkevents-x11.c
* gdk/win32/gdkevents-win32.c: Move the GdkEventPrivate and
GdkEventFlags definitions from gdkevents.c to
gdkinternals.h. Remove the duplicated definitions in
gdkevents-x11.c and gdkevents-win32.c. (#89771)

21 years agoLet the system handle Alt-Space, too. Thanks to Tim Evans (#91477).
Tor Lillqvist [Sat, 24 Aug 2002 20:26:59 +0000 (20:26 +0000)]
Let the system handle Alt-Space, too. Thanks to Tim Evans (#91477).

2002-08-24  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
system handle Alt-Space, too. Thanks to Tim Evans (#91477).

21 years agoupdate g_connect_signal usage
BST 2002 Tony Gale [Sat, 24 Aug 2002 11:53:26 +0000 (11:53 +0000)]
update g_connect_signal usage

Sat Aug 24 12:46:37 BST 2002  Tony Gale <gale@gtk.org>

        * docs/tutorial/gtk-tut.sgml, examples/*:
        update g_connect_signal usage

        * docs/faq/gtk-faq.html: spelling/grammar fixes

21 years agogdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus
Matthias Clasen [Thu, 22 Aug 2002 21:32:06 +0000 (21:32 +0000)]
gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus

* gdk-pixbuf-io.h:
gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer
static, thus _gdk_pixbuf-prefixed.

* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
Keep this logic in sync with gdk_pixbuf_new_from_file().  (Based
on a patch by Anders Carlsson)

* io-png.c (gdk_pixbuf__png_image_save): Plug a memory
leak.  (#91422, Sven Neumann)

21 years agoMove GDK_DEP_LIBS from LDFLAGS to each of the libgdk_*_LIBADD, to fix
Tor Lillqvist [Wed, 21 Aug 2002 18:50:15 +0000 (18:50 +0000)]
Move GDK_DEP_LIBS from LDFLAGS to each of the libgdk_*_LIBADD, to fix

2002-08-21  Tor Lillqvist  <tml@iki.fi>

* gdk/Makefile.am: Move GDK_DEP_LIBS from LDFLAGS to each of the
libgdk_*_LIBADD, to fix problems when cross-compiling, as
suggested by J. Ali Harlow in #87103.

21 years agoFix buglet that sometimes left dirt in corner of the rubberband area.
Soeren Sandmann [Tue, 20 Aug 2002 19:50:19 +0000 (19:50 +0000)]
Fix buglet that sometimes left dirt in corner of the rubberband area.

2002-08-20  Soeren Sandmann  <sandmann@daimi.au.dk>

* libegg/iconlist/eggiconlist.c (rubberbanding): Fix buglet that
sometimes left dirt in corner of the rubberband area.

21 years agoUpdated Persian translation.CVS: -----------------------------------------------...
Roozbeh Pournader [Mon, 19 Aug 2002 23:46:37 +0000 (23:46 +0000)]
Updated Persian translation.CVS: ----------------------------------------------------------------------

21 years agoUpdating Persian translations.
Roozbeh Pournader [Mon, 19 Aug 2002 15:11:08 +0000 (15:11 +0000)]
Updating Persian translations.

21 years agoUse gtk_entry_set_positions() to update current_pos and selection_bound so
Padraig O'Briain [Mon, 19 Aug 2002 14:39:44 +0000 (14:39 +0000)]
Use gtk_entry_set_positions() to update current_pos and selection_bound so

* gtk/gtkentry.c (gtk_entry_real_delete_text): Use
gtk_entry_set_positions() to update current_pos and selection_bound
so notifications are emitted (#90548)

21 years agoswitch vbox and action_area back to the order that 2.0 has
jacob berkman [Fri, 16 Aug 2002 19:04:54 +0000 (19:04 +0000)]
switch vbox and action_area back to the order that 2.0 has

2002-08-16  jacob berkman  <jacob@ximian.com>

* gtk/gtkdialog.h (struct _GtkDialog): switch vbox and action_area
back to the order that 2.0 has

21 years agominor menu example comment fix (feeling my way back in after a long
Tony Gale [Thu, 15 Aug 2002 21:54:41 +0000 (21:54 +0000)]
minor menu example comment fix (feeling my way back in after a long

* docs/tutorial/gtk-tut.sgml, examples/menu/menu.c:
  minor menu example comment fix
  (feeling my way back in after a long absence)

21 years agoinitialize gtk_selection_atoms only once at the 1st call. set length of
Hidetoshi Tajima [Wed, 14 Aug 2002 15:11:41 +0000 (15:11 +0000)]
initialize gtk_selection_atoms only once at the 1st call. set length of

* gtk/gtkselection.c (gtk_selection_init): initialize
gtk_selection_atoms only once at the 1st call.
* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
set length of selection data from number of read bytes (#90595)

21 years agoMove focus to children, if they exist, after GtkTextView is focused.
Padraig O'Briain [Wed, 14 Aug 2002 08:05:30 +0000 (08:05 +0000)]
Move focus to children, if they exist, after GtkTextView is focused.

* gtk/gtktextview.c (gtk_text_view_focus): Move focus to
children, if they exist, after GtkTextView is focused. (#63844)

21 years agopartial translation update
Gustavo Noronha Silva [Tue, 13 Aug 2002 20:05:44 +0000 (20:05 +0000)]
partial translation update

21 years agoRemove gdk_screen_close, add a section for GdkDisplayManager, add
Matthias Clasen [Mon, 12 Aug 2002 21:34:45 +0000 (21:34 +0000)]
Remove gdk_screen_close, add a section for GdkDisplayManager, add

* gdk/gdk-sections.txt: Remove gdk_screen_close, add a section
for GdkDisplayManager, add gdk_visual_get_screen and
gdk_colormap_get_screen.
* gdk/gdkdisplaymanager.c:
* gdk/gdkdisplay.c (gdk_pointer_ungrab): Fix doc comments.

* gdk/x11/gdkcolor-x11.c (gdk_colormap_get_screen):
* gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Make parameter
names match those in the header file, to silence gtk-doc.

21 years agoMention in the docs that @pixmap_return and @mask_return can be %NULL.
Owen Taylor [Sun, 11 Aug 2002 02:20:16 +0000 (02:20 +0000)]
Mention in the docs that @pixmap_return and @mask_return can be %NULL.

Sat Aug 10 22:18:05 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkpixbuf-render.c
        (gdk_pixbuf_render_pixmap_and_mask[_for_colormap]): Mention
        in the docs that @pixmap_return and @mask_return can
        be %NULL.

21 years agoMinor documentation fixes
Soren Sandmann [Sat, 10 Aug 2002 09:55:41 +0000 (09:55 +0000)]
Minor documentation fixes

2002-08-10  Soren Sandmann  <sandmann@daimi.au.dk>

* docs/reference/gtk/tree_widget.sgml,
docs/reference/gtk/tmpl/gtkdialog.sgml,
docs/reference/gtk/tmpl/gtkentry.sgml,
docs/reference/gtk/tmpl/gtkfilesel.sgml,
docs/reference/gtk/tmpl/gtkfontsel.sgml,
docs/reference/gtk/tmpl/gtkfontseldlg.sgml,
docs/reference/gtk/tmpl/gtktreemodel.sgml,
docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c,
gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c,
gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c,
gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c,
gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c,
gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c,
gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c,
gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c,
gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c,
gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c,
gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c,
gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c,
gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c,
gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h,
gtk/gtkwindow.c:

Minor documentation fixes

(#89254, patch from Brett Nash;
 #85809, patch from daten@dnetc.org;
 #76391, patch from Ross Burton;
 #74559, Manuel Clos;
 #73569, #72005, Alexey A. Malyshev;
 #70061, patch from Dennis Bj"orklund;
 #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov;
 #78932, Vitaly Tishkov, patch from Ross Burton;
 #73306)

21 years agoChanges to support depth 8 StaticColor visuals. (#81631)
Matthias Clasen [Fri, 9 Aug 2002 23:25:48 +0000 (23:25 +0000)]
Changes to support depth 8 StaticColor visuals. (#81631)

* gdk/gdkrgb.c (gdk_rgb_try_colormap):
(gdk_rgb_create_info):
(gdk_rgb_select_conv):
(gdk_draw_gray_image):
(gdk_rgb_cmap_get_info): Changes to support depth 8 StaticColor
visuals.  (#81631)
(gdk_rgb_cmap_free): Don't loop forever.

21 years agoFix weird usage of 'class' for GdkDisplay * argumnent name. (#9031, Laszlo
Owen Taylor [Fri, 9 Aug 2002 12:06:14 +0000 (12:06 +0000)]
Fix weird usage of 'class' for GdkDisplay * argumnent name. (#9031, Laszlo

Fri Aug  9 08:04:47 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkdisplay.h (struct _GdkDisplayClass): Fix
        weird usage of 'class' for GdkDisplay * argumnent name.
        (#9031, Laszlo Peter)

21 years agoRemove explicit calls to pango_x/xft_shutdown_display() since Pango now
Owen Taylor [Fri, 9 Aug 2002 03:57:02 +0000 (03:57 +0000)]
Remove explicit calls to pango_x/xft_shutdown_display() since Pango now

Thu Aug  8 23:26:05 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkmain-x11.c gdk/x11/gdkscreen-x11.c: Remove
        explicit calls to pango_x/xft_shutdown_display() since
        Pango now does it by itself on XCloseDisplay().

21 years agoConsistently order pangoxft / pangox in pkg-config calls in hopes of
Owen Taylor [Fri, 9 Aug 2002 01:55:16 +0000 (01:55 +0000)]
Consistently order pangoxft / pangox in pkg-config calls in hopes of

Thu Aug  8 21:53:16 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Consistently order pangoxft / pangox
        in pkg-config calls in hopes of reducing problems
        (Eric Mader.)

21 years agoRemove gtk_style_get_font_for_display.
Matthias Clasen [Wed, 7 Aug 2002 22:24:18 +0000 (22:24 +0000)]
Remove gtk_style_get_font_for_display.

* gtk/gtk-sections.txt: Remove gtk_style_get_font_for_display.

21 years agoFix doc comment.
Matthias Clasen [Wed, 7 Aug 2002 22:23:18 +0000 (22:23 +0000)]
Fix doc comment.

* gtk/gtkmain.c (gtk_init): Fix doc comment.

* gtk/gtktreemodel.c (gtk_tree_path_new_from_indices): Make the
doc comment gtk-doc-grokkable.

21 years agolink gdk-pixbuf-xlib against x libs (bug #83442)
jacob berkman [Tue, 6 Aug 2002 14:12:03 +0000 (14:12 +0000)]
link gdk-pixbuf-xlib against x libs (bug #83442)

2002-08-06  jacob berkman  <jacob@ximian.com>

* configure.in: link gdk-pixbuf-xlib against x libs (bug #83442)

21 years agoPatch from Soeren Sandmann to improve GtkLabel behavior when it gets a too
Owen Taylor [Mon, 5 Aug 2002 21:22:22 +0000 (21:22 +0000)]
Patch from Soeren Sandmann to improve GtkLabel behavior when it gets a too

Mon Aug  5 17:20:45 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtklabel.c: Patch from Soeren Sandmann
        to improve GtkLabel behavior when it gets
        a too small allocation. (Always display the
        initial portion.) (#71742)

21 years agoWhen overriding LDFLAGS, include @LDFLAGS@, otherwise LDFLAGS the users
Owen Taylor [Mon, 5 Aug 2002 21:10:09 +0000 (21:10 +0000)]
When overriding LDFLAGS, include @LDFLAGS@, otherwise LDFLAGS the users

Mon Aug  5 17:01:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/Makefile.am (LDFLAGS): When overriding LDFLAGS,
        include @LDFLAGS@, otherwise LDFLAGS the users passes
        to configure don't get used. (#89946, Noah Levitt,
        Albert Chin)

        * gdk/linux-fb/Makefile.am: Remove LDFLAGS setting.

21 years agoFix problem with wrong depth being used. (#89941, Jacob Berkman.) Remove
Owen Taylor [Mon, 5 Aug 2002 19:28:56 +0000 (19:28 +0000)]
Fix problem with wrong depth being used. (#89941, Jacob Berkman.) Remove

Mon Aug  5 15:25:40 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
        Fix problem with wrong depth being used. (#89941, Jacob
        Berkman.) Remove an unneeded 'screen' variable.

Mon Aug  5 15:04:59 2002  Owen Taylor  <otaylor@redhat.com>

        More fixes for warnings reported by David L. Cooper II

        * gtk/gtkaccelmap.c (accel_map_parse_accel_path): Use
        GdkModifierType for accel_mods. (#85856)

        * gdk/gdkdisplay.h (struct _GdkDisplay): Make button_number
        signed, since we use -1 as an 'unset' value. (#85854)

        * gdk/x11/xsettings-client.c (parse_settings): Suppress
        a warning (#85853)

        * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Fix
        accidental trailing ';'. (#85846)

21 years agoMore fixes for warnings reported by David L. Cooper II
Owen Taylor [Mon, 5 Aug 2002 19:07:14 +0000 (19:07 +0000)]
More fixes for warnings reported by David L. Cooper II

Mon Aug  5 15:04:59 2002  Owen Taylor  <otaylor@redhat.com>

        More fixes for warnings reported by David L. Cooper II

        * gtk/gtkaccelmap.c (accel_map_parse_accel_path): Use
        GdkModifierType for accel_mods. (#85856)

        * gdk/gdkdisplay.h (struct _GdkDisplay): Make button_number
        signed, since we use -1 as an 'unset' value. (#85854)

        * gdk/x11/xsettings-client.c (parse_settings): Suppress
        a warning (#85853)

        * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Fix
        accidental trailing ';'. (#85846)

21 years agoAdd a note that yes, we do know what () means and we can't change it.
Owen Taylor [Mon, 5 Aug 2002 18:52:28 +0000 (18:52 +0000)]
Add a note that yes, we do know what () means and we can't change it.

Mon Aug  5 14:50:13 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkitemfactory.h: Add a note that yes, we do know
what () means and we can't change it.

Fixes for warnings reported by David L. Cooper II

* tests/testtext.c: Warning fixes. Fix order of arguments
to gtk_message_dialog_new(). (#85891)

* gtk/gtktreeitem.c (gtk_tree_item_paint): Fix incorrect
use GTK_STATE_INSENSITIVE for a shadow type. (Not clear
what the drawing intent was, but it's ENABLE_BROKEN
anyways.) (#85880)

* gtk/gtktexttypes.c: Use character literals
instead of direct constants to avoid warning. (#85878)

* gtk/theme-bits/decompose-bits.c gtk/gtkstyle.c:
Fix some signed/unsigned problems (#85876)

* gtk/gtksignal.c (gtk_signal_newv): Add an explicit
cast from GtkSignalRunType to GSignalFlags. (#85875)

* gtk/gtkitemfactory.c (gtk_item_factory_add_item): Fix
use of guint instead of GdkModifierType (#85871)

* gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
Fix signed/unsigned problem (#85870)

* gtk/gtkimcontext.c (gtk_im_context_class_init): Get
rid of GtkType/Signal*. (Fixes #85869 as a side effect)

* gtk/gtkdnd.c (gtk_drag_get_cursor): Fix some
signed/unsigned warnings (#85865)

21 years agoMerged Sun changes that made sense.
Christian Rose [Sun, 4 Aug 2002 22:57:52 +0000 (22:57 +0000)]
Merged Sun changes that made sense.

2002-08-05  Christian Rose  <menthos@menthos.com>

* sv.po: Merged Sun changes that made sense.

21 years agoFix for binary compatibility across 2.x.y.
Matthias Clasen [Sun, 4 Aug 2002 21:38:17 +0000 (21:38 +0000)]
Fix for binary compatibility across 2.x.y.

* gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
across 2.x.y.

21 years agoMissed file:
Owen Taylor [Sun, 4 Aug 2002 20:26:36 +0000 (20:26 +0000)]
Missed file:

Thu Aug  1 19:09:39 2002  Owen Taylor  <otaylor@redhat.com>

        * demos/gtk-demo/changedisplay.c: New demo for
        window migration between different displays and screens.

21 years agosorry
Gediminas Paulauskas [Fri, 2 Aug 2002 22:59:50 +0000 (22:59 +0000)]
sorry

21 years agoFix menus resizing dynamically while they are popped up or torn off.
Owen Taylor [Fri, 2 Aug 2002 22:03:23 +0000 (22:03 +0000)]
Fix menus resizing dynamically while they are popped up or torn off.

Fri Aug  2 18:00:46 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmenu.c: Fix menus resizing dynamically while
        they are popped up or torn off. (#78949)

21 years agoprototypes with no parameters must be defined as (void), not ()
Gediminas Paulauskas [Fri, 2 Aug 2002 22:01:01 +0000 (22:01 +0000)]
prototypes with no parameters must be defined as (void), not ()

2002-08-02  Gediminas Paulauskas <menesis@delfi.lt>

        * gtkitemfactory.h: prototypes with no parameters must be
        defined as (void), not ()

21 years ago----:---F1 gdkregion-generic.c (CGTK CVS:1.11 Abbrev)--L1696--96%---------Fri...
Owen Taylor [Fri, 2 Aug 2002 20:39:40 +0000 (20:39 +0000)]
----:---F1  gdkregion-generic.c      (CGTK CVS:1.11 Abbrev)--L1696--96%---------Fri Aug  2 16:38:34 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkregion-generic.c: Comprehensively add
        g_return_[val]if_fail() statements. (#89491, Robin Lu)

21 years agoRemove references to gdk_initialized (#81060, Jacob Berkman)
Owen Taylor [Fri, 2 Aug 2002 20:25:38 +0000 (20:25 +0000)]
Remove references to gdk_initialized (#81060, Jacob Berkman)

Fri Aug  2 16:24:32 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkmain-x11.c: Remove references to
        gdk_initialized (#81060, Jacob Berkman)

        * gdk/gdk.c (gdk_exit): Remove gdk_exit_func().

21 years agoFix args to pango_x_shutdown_display().
Owen Taylor [Fri, 2 Aug 2002 20:22:49 +0000 (20:22 +0000)]
Fix args to pango_x_shutdown_display().

Fri Aug  2 15:56:47 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_dispose): Fix
        args to pango_x_shutdown_display().

        * gdk/linux-fb/gdkinput.c gdk/linux-fb/gdkinputprivate.h
        gdk/win32/gdkinput-win32.[ch] gdk/win32/gdkinput.c
        gdk/win32/gdkwindow-win32.c gdk/x11/gdkinput-x11.c
        gdk/x11/gdkinput-xfree.c gdk/x11/gdkinput.c
        gdk/x11/gdkinputprivate.h gdk/x11/gdkwindow-x11.c: Move
        a bunch of functions gdk_input => _gdk_input. Clean
        up some header file cruft. (#79971)

21 years agoCall pango_x[ft]_shutdown_display().
Owen Taylor [Fri, 2 Aug 2002 19:19:42 +0000 (19:19 +0000)]
Call pango_x[ft]_shutdown_display().

Fri Aug  2 12:21:41 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_dispose):
        Call pango_x[ft]_shutdown_display().

21 years agodeclare screen_x11 variable to fix build w/ xinerama
jacob berkman [Fri, 2 Aug 2002 16:28:29 +0000 (16:28 +0000)]
declare screen_x11 variable to fix build w/ xinerama

2002-08-02  jacob berkman  <jacob@ximian.com>

* gdk/x11/gdkscreen-x11.c (check_xfree_xinerama): declare
screen_x11 variable to fix build w/ xinerama

21 years agoSwitch back to using XftDraw so that we take advantage of the
Owen Taylor [Fri, 2 Aug 2002 04:57:53 +0000 (04:57 +0000)]
Switch back to using XftDraw so that we take advantage of the

Fri Aug  2 00:43:15 2002  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
gdk/x11/gdkpango-x11.c gdk/x11/gdkpixmap-x11.c
gdk/x11/gdkprivate-x11.h gdk/x11/gdkwindow-x11.c:
Switch back to using XftDraw so that we take
advantage of the draw-to-non-RENDER capabilities
of Xft2.

* demos/gtk-demo/changedisplay.c (query_for_toplevel):
Fix the case where the user clicks on the "click on
a window popup".

21 years agoNew demo for window migration between different displays and screens.
Owen Taylor [Thu, 1 Aug 2002 23:43:13 +0000 (23:43 +0000)]
New demo for window migration between different displays and screens.

Thu Aug  1 19:09:39 2002  Owen Taylor  <otaylor@redhat.com>

* demos/gtk-demo/changedisplay.c: New demo for
window migration between different displays and screens.

* gtk/gtkrc.c gtkstyle.[ch]: Add
_gtk_style_init_for_settings(), so that gtkrc.c
can initialize the styles it creates for the
right display.

* gdk/gdkdisplaymanager.c (gdk_screen_get_default)
* gtk/gtksettings.c (gtk_settings_get_default)
* gtk/gtkstyle.c (gtk_style_init): Handle absence of
a default screen.

* gdk/x11/gdkmain-x11.c (_gdk_windowing_set_default_display):
Handle display == NULL.x

* gdk/gdkdisplay.c (gdk_display_dispose): Free the
event queue.

* gdk/x11/gdkevents-x11.c gdk/x11/gdkdisplay-x11.c:
Remove the event source when closing a display.

* gdk/gdkdisplay.[ch]: Add a ::closed signal, dispose()
isn't convenient enough by itself.

* gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb):
Create foreign windows for watch windows if there isn't
an existing window, instead of installing a global filter.

* gdk/x11/gdkscreen-x11.c gdk/x11/gdkprivate-x11.h
gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen):
Clean up the xsettings_client when we are done with
it.

* gdk/x11/gdkevents-x11.c (_gdk_events_init): Remove
excess call to _gdk_x11_events_init_screen()

21 years agoMerge from stable:
Sven Neumann [Thu, 1 Aug 2002 18:22:28 +0000 (18:22 +0000)]
Merge from stable:

2002-08-01  Sven Neumann  <sven@gimp.org>

Merge from stable:

* gdk/gdkrgb.c: trivial changes to some debug code so it compiles
with VERBOSE being defined.

21 years agoStart implementing display/screen closing scheme; keep a flag for whether
Owen Taylor [Thu, 1 Aug 2002 15:28:40 +0000 (15:28 +0000)]
Start implementing display/screen closing scheme; keep a flag for whether

Thu Aug  1 11:26:03 2002  Owen Taylor  <otaylor@redhat.com>

* gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch] gdkinternals.h:
Start implementing display/screen closing scheme; keep a
flag for whether displays and screens are closed,
call g_object_run_dispose(). Remove public gdk_screen_close().

* gdk/x11/gdkdisplay-x11.c gdk/x11/gdkscreen-x11.c: Add
dispose() methods; move appropriate parts of the finalize
there.

* gdk/x11/gdkcolor-x11.c gdk/x11/gdkimage-x11.c
gdk/x11/gdkmain-x11.c gdk/x11/gdkpango-x11.c
gdk/x11/gdkpixmap-x11.c gdk/x11/gdkproperty-x11.c
gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.c:
Start of making everything correctly ignore operations
when a display has been closed.

* gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
Handle decorations == NULL.

* gdk/x11/gdkcolor-x11.c (gdk_colormap_remove):
Remove unnecessary hash table creation.

* gdk/x11/gdkinput.c gdk/x11/gdkinput-x11.c gdk/win32/gdkinput.c
Fix up gdk_device_get_history - handle events, n_events == NULL,
etc.

* gdk/x11/gdkproperty-x11.c (gdk_property_get):
Handle failure better.

* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
Handle failure better, handle data == NULL, move docs
here, remove an excess round trip by asking for
all selection data at once.

* gdk/gdkselection.c gdk/win32/{x11,win32}/gdkselection-{x11,win32}.c
  gdk/{x11,win32}/gdkmain-{x11,win32}.c gdk/gdkdisplay.c: Move
gdk_text_property_to_text_list(), gdk_string_to_compound_text(),
gdk_display_set_sm_client_id() to display-independent part of GDK.

* gdk/Makefile.am (gdk_c_sources): Sort gdkdisplay/screen.[ch]
into the right place.

21 years agoescape_string() only takes one arg
jacob berkman [Wed, 31 Jul 2002 19:08:39 +0000 (19:08 +0000)]
escape_string() only takes one arg

2002-07-31  jacob berkman  <jacob@ximian.com>

* gtk/queryimmodules.c (print_escaped): escape_string() only takes
one arg

21 years agoAvoid using g_strescape(), since it mangles UTF-8, (#89479, Yao Zhang.)
Owen Taylor [Wed, 31 Jul 2002 16:54:46 +0000 (16:54 +0000)]
Avoid using g_strescape(), since it mangles UTF-8, (#89479, Yao Zhang.)

Wed Jul 31 12:50:51 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/queryimmodules.c: Avoid using g_strescape(),
        since it mangles UTF-8, (#89479, Yao Zhang.)

21 years agofree the result of gdk_pixdata_serialize() (bug #89411).
Sven Neumann [Wed, 31 Jul 2002 08:17:43 +0000 (08:17 +0000)]
free the result of gdk_pixdata_serialize() (bug #89411).

2002-07-31  Sven Neumann  <sven@gimp.org>

* gdk-pixdata.c (gdk_pixdata_to_csource): free the result of
gdk_pixdata_serialize() (bug #89411).

21 years agoHandle inverted ranges correctly (#85436, fix from Norihiro UMEDA)
Owen Taylor [Tue, 30 Jul 2002 23:17:50 +0000 (23:17 +0000)]
Handle inverted ranges correctly (#85436, fix from Norihiro UMEDA)

Tue Jul 30 19:09:46 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkrange.c (gtk_range_scroll_event): Handle
        inverted ranges correctly (#85436, fix from
        Norihiro UMEDA)

21 years agoFix bug in the selection mode option menus which were setting the wrong
Owen Taylor [Tue, 30 Jul 2002 20:43:15 +0000 (20:43 +0000)]
Fix bug in the selection mode option menus which were setting the wrong

Tue Jul 30 16:36:53 2002  Owen Taylor  <otaylor@redhat.com>

        * tests/testgtk.c: Fix bug in the selection mode option
        menus which were setting the wrong values.
        (#85763, Manuel Op de Coul)

21 years agoHonor GDK_PIXBUF_CSOURCE from configure.in when cross-compiling. (#87099,
Owen Taylor [Tue, 30 Jul 2002 20:00:16 +0000 (20:00 +0000)]
Honor GDK_PIXBUF_CSOURCE from configure.in when cross-compiling. (#87099,

Tue Jul 30 15:39:06 2002  Owen Taylor  <otaylor@redhat.com>

        * demos/Makefile.am: Honor GDK_PIXBUF_CSOURCE from
        configure.in when cross-compiling. (#87099,
        J. Ali Harlow)

21 years agoCommitted updated translation.
Fatih Demir [Tue, 30 Jul 2002 09:13:06 +0000 (09:13 +0000)]
Committed updated translation.

21 years agoFix some warnings by adding casts to PixopsInterpType. (#85839, David L.
Owen Taylor [Tue, 30 Jul 2002 03:09:39 +0000 (03:09 +0000)]
Fix some warnings by adding casts to PixopsInterpType. (#85839, David L.

Mon Jul 29 23:06:10 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk-pixbuf-scale.c: Fix some warnings by adding
        casts to PixopsInterpType. (#85839, David L. Cooper, II.)

21 years agoFix up the example program a bit. (#88814, Johnson Wong)
Owen Taylor [Tue, 30 Jul 2002 02:39:59 +0000 (02:39 +0000)]
Fix up the example program a bit. (#88814, Johnson Wong)

Mon Jul 29 22:36:06 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/tmpl/gtkfilesel.sgml: Fix up the example program
        a bit. (#88814, Johnson Wong)

21 years agoChanges, bug fixes etc.
Anders Carlsson [Mon, 29 Jul 2002 21:11:23 +0000 (21:11 +0000)]
Changes, bug fixes etc.

21 years agoUnset gtk-im-surrounding-info object data again. (Fix from Yao Zhang,
Owen Taylor [Mon, 29 Jul 2002 21:04:22 +0000 (21:04 +0000)]
Unset gtk-im-surrounding-info object data again. (Fix from Yao Zhang,

Mon Jul 29 16:42:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkimcontext.c (gtk_im_context_real_get_surrounding):
        Unset gtk-im-surrounding-info object data again.
        (Fix from Yao Zhang, #86811)

21 years agori Jul 26 17:59:06 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Fri, 26 Jul 2002 22:21:39 +0000 (22:21 +0000)]
ri Jul 26 17:59:06 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Replace uses of grep \(A\|B\) ... with
        egrep (A|B). (#84872, Arnaud Charlet)

21 years agoAPI additions: _move, _reorder and _swap for stores, path constructor.
Kristian Rietveld [Fri, 26 Jul 2002 20:51:13 +0000 (20:51 +0000)]
API additions: _move, _reorder and _swap for stores, path constructor.

Fri Jul 26 22:53:37 2002  Kristian Rietveld  <kris@gtk.org>

        API additions: _move, _reorder and _swap for stores, path
        constructor.

        * gtk/gtktreemodel.[ch] (gtk_tree_path_new_from_indices): new function.

        * gtk/gtkliststore.[ch]: added gtk_list_store_reorder_func (private),
        gtk_list_store_reorder, gtk_list_store_swap, gtk_list_store_move.

        * gtk/gtktreestore.[ch]: added gtk_tree_store_reorder_func (private),
        gtk_tree_store_reorder, gtk_tree_store_swap, gtk_tree_store_move.

Fri Jul 26 22:32:57 2002  Kristian Rietveld  <kris@gtk.org>

        Merge from stable:

        * gtk/gtktreestore.c (node_free): return FALSE,
        (gtk_tree_store_finalize): use g_node_traverse instead of
        g_node_children_foreach, so the whole tree will be freed (#88854,
        patch from Emmanuel Briot).

Fri Jul 26 22:32:24 2002  Kristian Rietveld  <kris@gtk.org>

        Merge from stable:

        * gtk/gtktreeview.c (gtk_tree_view_button_press): fix some memleaks,
        (#84426, patch from Matthias Clasen).

Fri Jul 26 22:31:25 2002  Kristian Rietveld  <kris@gtk.org>

        Merge from stable:

        * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): _iter_children
        check shouldn't be in g_return_return_val_if_fail (pointed out by
        Josh Green, #88997),
        (gtk_tree_view_set_model): call _gtk_tree_view_column_unset_model
        for each column when we unset the model (part of #82484),
        (gtk_tree_view_get_cell_area): return if we ran out of tree or
        if we got an invalid path (#82376).

        * gtk/gtktreeprivate.h: add _gtk_tree_view_column_unset_model.

        * gtk/gtktreeviewcolumn.c: implement _gtk_tree_view_column_unset_model
        which disconnects the sort_column_changed_signal (part of #82484).

        * gtk/gtkliststore.c (gtk_list_store_insert): append row if the
        given postion is off the end of the tree (#85813).

        * gtk/gtkentry.c (gtk_cell_editable_key_press_event): let's use
        2-space indent, commit changes if up/down keys has been pressed,
        this overrides the focus key foo so the user won't be surprised
        (#84665).

21 years agoCheck if depth of the source is not equal to the depth of the colormap
Shivram U [Fri, 26 Jul 2002 11:14:13 +0000 (11:14 +0000)]
Check if depth of the source is not equal to the depth of the colormap

Fri Jul 26 16:34:34 2002  Shivram U  <shivaram.upadhyayula@wipro.com>

* gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable),
(gdk_pixbuf_get_from_image), (rgbconvert), (convert_real_slow):
Check if depth of the source is not equal to the depth of the colormap
passed. (#75597)

21 years agoUse gdk_rgb_convert_4, not gdk_rgb_convert_8 for depth 4, bpp 8,
Matthias Clasen [Thu, 25 Jul 2002 20:31:08 +0000 (20:31 +0000)]
Use gdk_rgb_convert_4, not gdk_rgb_convert_8 for depth 4, bpp 8,

* gdk/gdkrgb.c (gdk_rgb_select_conv): Use gdk_rgb_convert_4,
not gdk_rgb_convert_8 for depth 4, bpp 8, PseudoColor visuals.
(#88697)

21 years agoWhen a menubar is up, use F10 to cycle menubars, not Control-Tab (#87159,
Owen Taylor [Thu, 25 Jul 2002 18:17:28 +0000 (18:17 +0000)]
When a menubar is up, use F10 to cycle menubars, not Control-Tab (#87159,

Thu Jul 25 14:14:46 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmenushell.c: When a menubar is up, use F10 to cycle
        menubars, not Control-Tab (#87159, Calum Benson. Patch from
        Padraig O'Briain.)

        * gtk/gtkmenubar.c: When cycling menu bars, cancel
        after the last instead of wrapping around.

21 years ago[ Patch from Padraig O'Briain, #87904 ]
Owen Taylor [Thu, 25 Jul 2002 16:12:46 +0000 (16:12 +0000)]
[ Patch from Padraig O'Briain, #87904 ]

Thu Jul 25 11:57:57 2002  Owen Taylor  <otaylor@redhat.com>

        [ Patch from Padraig O'Briain, #87904 ]

        * gtk/gtkwidget.c (gtk_widget_class_init): Cleanup -
        use G_SIGNAL_RUN_LAST not GTK_RUN_LAST when using
        g_signal new.

        * gtk/gtktogglebutton.c (gtk_toggle_button_mnemonic_activate):
        Always focus the widget, even when we are activating
        as well.

21 years agoApply patch from Gustavo Giraldez for bug #78513
Havoc Pennington [Thu, 25 Jul 2002 02:52:44 +0000 (02:52 +0000)]
Apply patch from Gustavo Giraldez for bug #78513

2002-07-24  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextview.c: Apply patch from Gustavo
Giraldez for bug #78513

21 years agoDon't use GTK_RC_FILES, since it causes problems with what KDE (etc.) does
Owen Taylor [Wed, 24 Jul 2002 20:54:34 +0000 (20:54 +0000)]
Don't use GTK_RC_FILES, since it causes problems with what KDE (etc.) does

Wed Jul 24 16:43:49 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkrc.c docs/references/tmpl/gtkrc.sgml: Don't use
        GTK_RC_FILES, since it causes problems with what KDE (etc.)
        does to customize GTK+ themes, use GTK2_RC_FILES instead. (#88987)

21 years agoAvoid unnecessary casting.
Matthias Clasen [Tue, 16 Jul 2002 17:32:08 +0000 (17:32 +0000)]
Avoid unnecessary casting.

* io-ras.c (DoCompressed): Avoid unnecessary casting.

21 years agofixed the example code (return TRUE from the expose_event handler).
Sven Neumann [Tue, 16 Jul 2002 17:21:25 +0000 (17:21 +0000)]
fixed the example code (return TRUE from the expose_event handler).

2002-07-16  Sven Neumann  <sven@gimp.org>

* gdk/tmpl/rgb.sgml: fixed the example code (return TRUE from the
expose_event handler).

21 years agoFixed the LSB -> MSB case. Fixes #79463.
Federico Mena Quintero [Tue, 16 Jul 2002 17:18:09 +0000 (17:18 +0000)]
Fixed the LSB -> MSB case. Fixes #79463.

2002-07-16  Federico Mena Quintero  <federico@ximian.com>

* gdk/gdkpixbuf-drawable.c (rgb565lsb): Fixed the LSB -> MSB case.
Fixes #79463.

21 years agogdk/gdk.c gdk/gdkinternals.h gdk/win32/gdkmain-win32.c pass argc and argv
Sven Neumann [Tue, 16 Jul 2002 16:11:49 +0000 (16:11 +0000)]
gdk/gdk.c gdk/gdkinternals.h gdk/win32/gdkmain-win32.c pass argc and argv

2002-07-16  Sven Neumann  <sven@gimp.org>

* gdk/gdk.c
* gdk/gdkinternals.h
* gdk/win32/gdkmain-win32.c
* gdk/x11/gdkmain-x11.c: pass argc and argv to the GDK backend in
_gdk_windowing_init() so that the backend has a chance to process
the command-line arguments (GTK+-DirectFB needs this).

21 years agoactivate the menu item so old apps work properly
jacob berkman [Wed, 10 Jul 2002 18:47:32 +0000 (18:47 +0000)]
activate the menu item so old apps work properly

2002-07-10  jacob berkman  <jacob@ximian.com>

* gtk/gtkoptionmenu.c (gtk_option_menu_scroll_event): activate the
menu item so old apps work properly

21 years agoFix some cases where signal connection IDs where being assigned to guint
Owen Taylor [Wed, 10 Jul 2002 18:30:23 +0000 (18:30 +0000)]
Fix some cases where signal connection IDs where being assigned to guint

Wed Jul 10 14:27:14 2002  Owen Taylor  <otaylor@redhat.com>

        * modules/input/gtkimcontextxim.c gtk/gtkcolorsel.c
        gtk/gtkdialog.c gtk/gtktextbtree.c: Fix some cases
        where signal connection IDs where being assigned to
        guint rather than gulong. (part of #87281, Shivram U)

21 years agoNew function for loading an image from a file either via module->load or
Matthias Clasen [Sun, 7 Jul 2002 20:29:48 +0000 (20:29 +0000)]
New function for loading an image from a file either via module->load or

* gdk-pixbuf-io.c (generic_image_load): New function for loading
an image from a file either via module->load or incrementally.
(prepared_notify): ModulePreparedNotifyFunc for generic_image_load.
(gdk_pixbuf_new_from_file): Use generic_image_load.
* io-bmp.c, io-ico.c, io-ras.c, io-wbmp.c: Remove trivial
implementations of module->load.  (#71266)

21 years agoupdated italian translation
Christopher R. Gabriel [Sun, 7 Jul 2002 01:34:42 +0000 (01:34 +0000)]
updated italian translation

21 years agoCorrect computation of image height. (OneLine): Correct update
Matthias Clasen [Sat, 6 Jul 2002 23:54:50 +0000 (23:54 +0000)]
Correct computation of image height. (OneLine): Correct update

* io-ico.c (DecodeHeader): Correct computation of image height.
(OneLine): Correct update notification.

21 years agoLoad-at-size functionality for gdk-pixbuf.
Matthias Clasen [Sat, 6 Jul 2002 23:10:46 +0000 (23:10 +0000)]
Load-at-size functionality for gdk-pixbuf.

21 years agoHandle global_error == NULL better. (tiff_image_parse): Don't trust
Matthias Clasen [Sat, 6 Jul 2002 08:55:51 +0000 (08:55 +0000)]
Handle global_error == NULL better. (tiff_image_parse): Don't trust

* io-tiff.c (tiff_set_error): Handle global_error == NULL
better.
(tiff_image_parse): Don't trust TIFFRGBAImageBegin to set
the "put" routine.  (Fixes #87384)
(gdk_pixbuf__tiff_image_stop_load): Don't call TIFFClose too
early.

21 years agoAdd an extra parameter to _gtk_menu_item_select_first() to allow us to
Owen Taylor [Sat, 6 Jul 2002 00:21:43 +0000 (00:21 +0000)]
Add an extra parameter to _gtk_menu_item_select_first() to allow us to

Fri Jul  5 20:18:23 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmenushell.[ch] gtk/gtkmenubar.c gtk/gtkmenuitem.c
        gtk/gtkentry.c gtk/gtktextview.c: Add an extra parameter
        to _gtk_menu_item_select_first() to allow us to choose
        whether we want to select the first item predictably
        or to select the first sensitive item. Fixes problem
        with insensitive menu items and keynav. (#85796,
        reported by Bill Haneman and others.)

21 years agofix warning. (gtk_tree_view_search_iter): fix warning, #85884
Jonathan Blandford [Fri, 5 Jul 2002 17:25:16 +0000 (17:25 +0000)]
fix warning. (gtk_tree_view_search_iter): fix warning, #85884

Fri Jul  5 02:50:24 2002  Jonathan Blandford  <jrb@gnome.org>

* gtk/gtktreeview.c (gtk_tree_view_collapse_all): fix warning.
(gtk_tree_view_search_iter): fix warning, #85884

* gtk/gtktreestore.c (gtk_tree_store_get_flags): change return
value to GtkTreeModelFlags to fix compiler warning, #85883

* gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags): change
return value to GtkTreeModelFlags to fix compiler warning, #85882

* gtk/gtktreemodel.c (gtk_tree_path_prepend_index): fix compiler
warning, #85881

21 years agoMerge from HEAD.
Kristian Rietveld [Fri, 5 Jul 2002 10:44:36 +0000 (10:44 +0000)]
Merge from HEAD.

Fri Jul  5 12:51:39 2002  Kristian Rietveld  <kris@gtk.org>

        Merge from HEAD.

        * gtk/gtkliststore.c (gtk_list_store_sort): also update ->tail after            sorting.

21 years agoUpdated Ukrainian translation
Yuri Syrota [Fri, 5 Jul 2002 08:48:47 +0000 (08:48 +0000)]
Updated Ukrainian translation

21 years ago Miscellaneous bmp loader fixes (#85448, #86286, #86287):
Matthias Clasen [Tue, 2 Jul 2002 17:54:06 +0000 (17:54 +0000)]
Miscellaneous bmp loader fixes (#85448, #86286, #86287):

* io-bmp.c (grow_buffer): New function to avoid crashes
on unchecked reallocs.
(DecodeHeader, DecodeColormap, decode_bitmasks,
DoCompressed): Use grow_buffer instead of g_realloc
throughout. Change signatures where necessary to pass the
errors up.
(OneLine16): Fix loading of 16bpp BI_RGB bmps.
(DoCompressed): Rewritten to properly support BI_RLE4 and
skips and jumps.

21 years agoUse hyphen instead of underscore in signal names in calls to
Padraig O'Briain [Tue, 2 Jul 2002 16:22:19 +0000 (16:22 +0000)]
Use hyphen instead of underscore in signal names in calls to

* gtk/gtksocket.c (gtk_socket_hierarchy_changed):
Use hyphen instead of underscore in signal names in calls to
g_signal_connect_swapped (Fixes bug #86339)

21 years agoonly validate the visible area if we've ever been requisitioned.
Jonathan Blandford [Tue, 2 Jul 2002 04:36:30 +0000 (04:36 +0000)]
only validate the visible area if we've ever been requisitioned.

Tue Jul  2 00:33:26 2002  Jonathan Blandford  <jrb@gnome.org>

* gtk/gtktreeview.c (validate_visible_area): only validate the
visible area if we've ever been requisitioned.

21 years ago Support for compressed ras images (#84994):
Matthias Clasen [Mon, 1 Jul 2002 22:30:51 +0000 (22:30 +0000)]
Support for compressed ras images (#84994):

* io-ras.c (RAS2State): Error on unsupported ras variations.
(OneLine8): Fix colormap indexing.
(OneLine): Call updated_func with proper region.
(DoCompressed): New function, handles compressed ras data.
(gdk_pixbuf__ras_image_load_increment): Handle compressed ras
images.

21 years ago Better colorspace support for the jpeg loader (#61211):
Matthias Clasen [Mon, 1 Jul 2002 22:20:20 +0000 (22:20 +0000)]
Better colorspace support for the jpeg loader (#61211):

* io-jpeg.c (convert_cmyk_to_rgb): New function.
(gdk_pixbuf__jpeg_image_load,
gdk_pixbuf__jpeg_image_load_increment): Allocate a pixbuf with
alpha for 4-channel jpegs and call convert_cmyk_to_rgb for these.

21 years agosync up white space/variable names to match tree_store equiv.
Jonathan Blandford [Mon, 1 Jul 2002 21:15:35 +0000 (21:15 +0000)]
sync up white space/variable names to match tree_store equiv.

Mon Jul  1 17:04:09 2002  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up
white space/variable names to match tree_store equiv.

* gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we
set the value.

21 years agoFix for failure of gdk_pixbuf_xlib_get_from_drawable if source
Bill Haneman [Mon, 1 Jul 2002 16:21:51 +0000 (16:21 +0000)]
Fix for failure of gdk_pixbuf_xlib_get_from_drawable if source
drawable is root window.

21 years agoconverted a Tab to spaces.
Sven Neumann [Fri, 28 Jun 2002 14:14:42 +0000 (14:14 +0000)]
converted a Tab to spaces.

2002-06-28  Sven Neumann  <sven@gimp.org>

* gdk-pixbuf-csource.c (print_blurb): converted a Tab to spaces.

22 years ago*** empty log message ***
Wang Jian [Sat, 22 Jun 2002 18:22:28 +0000 (18:22 +0000)]
*** empty log message ***

22 years agoRenames:
Owen Taylor [Thu, 20 Jun 2002 23:59:27 +0000 (23:59 +0000)]
Renames:

Thu Jun 20 19:41:09 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkdisplay.h gdk/gdkscreen.h gdk/**.c gtk/*.c
        tests/*.c: Renames:

         gdk_get_default_display => gdk_display_get_default
         gdk_get_default_screen  => gdk_screen_get_default
         gdk_open_display        => gdk_display_open

22 years agoAdd a singleton object that we can use to get notification when displays
Owen Taylor [Thu, 20 Jun 2002 23:29:19 +0000 (23:29 +0000)]
Add a singleton object that we can use to get notification when displays

Thu Jun 20 16:49:00 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkdisplaymanager.[ch] gdk/gdk.[ch] gdk/gdkdisplay.c
        gdk/gdkinternals.h gdk/x11/gdkdisplay-x11.c
        gdk/win32/gdkdisplay-win32.c: Add a singleton object that
        we can use to get notification when displays
        appear / disappear or the default display changes.

        gdk_set_default_display() => gdk_display_manager_set_default_display()
        gdk_list_displays() => gdk_display_manager_list_displays().
        (#85696)

        * gdk/Makefile.am gdk/gdkmarshalers.list: Add marshaler
        generation.

        * gdk/gdkintl.h: Add this.

        * gtk/gtkmain.c: Add gtk_parse_args() that initializes
        GTK+ without opening a display.

        * gtk/gtkmain.c: Set things up so if a module
        exports gtk_module_init() and gtk_module_display_init(),
        then we treat it as multihead aware, otherwise,
        we only initialize it after the default display is set.

22 years agoPatch from Erwann Chenede.
Owen Taylor [Thu, 20 Jun 2002 19:59:30 +0000 (19:59 +0000)]
Patch from Erwann Chenede.

Thu Jun 20 15:53:21 2002  Owen Taylor  <otaylor@redhat.com>

Patch from Erwann Chenede.

* gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkprivate-x11.h:
Introduce a yes/no/unknown GdkTristate, use it
in a couple of places. (#79962)

* gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.h: Make
gravity_works per-display. (#79963)

22 years agoGet the owner from the display if !NULL. Otherwise, warn for multihead.
Owen Taylor [Thu, 20 Jun 2002 19:38:22 +0000 (19:38 +0000)]
Get the owner from the display if !NULL. Otherwise, warn for multihead.

Thu Jun 20 15:36:40 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkselection.c (gtk_selection_owner_set): Get
        the owner from the display if !NULL. Otherwise, warn for
        multihead. (#85680)

22 years agoGet rid of gtk_style_get_font_for_display(), make gtk_style_get_font()
Owen Taylor [Thu, 20 Jun 2002 19:29:16 +0000 (19:29 +0000)]
Get rid of gtk_style_get_font_for_display(), make gtk_style_get_font()

Thu Jun 20 15:17:14 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkstyle.[ch]: Get rid of gtk_style_get_font_for_display(),
        make gtk_style_get_font() warn for multihead if called
        on an unattached style.

        * gtk/gtktext.c: Remove use of gtk_style_get_font_for_display();
        this makes gtktext not multihead safe, but it doesn't matter;
        it's ENABLE_BROKEN anyways.

        * gtk/gtkmain.c gtk/gtkdebug.h: Add GTK_NOTE(MULTIHEAD,[])

22 years agoOnly change the double click time if the screen for the notification is
Owen Taylor [Thu, 20 Jun 2002 18:55:56 +0000 (18:55 +0000)]
Only change the double click time if the screen for the notification is

Thu Jun 20 14:51:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtksettings.c (gtk_settings_notify): Only
        change the double click time if the screen for
        the notification is screen 0 of the display.
        (#77978)

        * gdk/gdkevents.c (gdk_display_set_double_click_time): Fix
        half-done rename.

22 years agoAdd notification for screen property. (#80280)
Owen Taylor [Thu, 20 Jun 2002 16:14:24 +0000 (16:14 +0000)]
Add notification for screen property. (#80280)

Thu Jun 20 12:16:00 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkinvisible.c (gtk_invisible_set_screen): Add
notification for screen property. (#80280)

22 years agoSet the display.
Owen Taylor [Wed, 19 Jun 2002 23:36:42 +0000 (23:36 +0000)]
Set the display.

Tue Jun 18 19:38:08 2002  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
display.

* gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
missing check for mv_resize == NULL.