]> Pileus Git - ~andy/gtk/log
~andy/gtk
21 years agoImprove checks on public entry points, including, among other things
Owen Taylor [Fri, 4 Oct 2002 21:25:47 +0000 (21:25 +0000)]
Improve checks on public entry points, including, among other things

Fri Oct  4 17:13:03 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkdnd.c: Improve checks on public entry points,
        including, among other things checking whether drag
        contexts passed in are source or dest. (Fixes
        #76762, Alexey A. Malyshev)

        * tests/testtext.c tests/testgtk.c tests/testdnd.c:
        Fix uninstalled operation for new pixbuf changes.

        * gtk/stock-icons/Makefile.am (pixbuf_csource):
        Fix makefile for uninstalled operation.

21 years agoremove unused codepath.
Soeren Sandmann [Fri, 4 Oct 2002 19:46:36 +0000 (19:46 +0000)]
remove unused codepath.

Fri Oct  4 21:21:47 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtkhandlebox.c (gtk_handle_box_paint): remove unused
codepath.

* gtk/gtkmenuitem.c (gtk_real_menu_item_{de,}select): call
gtk_widget_queue_draw() instead of gtk_widget_draw().

21 years agoPatch from Shivram U <shivaram.upadhyayula@wipro.com>
Owen Taylor [Fri, 4 Oct 2002 18:59:49 +0000 (18:59 +0000)]
Patch from Shivram U <shivaram.upadhyayula@wipro.com>

Fri Oct  4 14:49:04 2002  Owen Taylor  <otaylor@redhat.com>

        Patch from Shivram U <shivaram.upadhyayula@wipro.com>

        * gdk/x11/gdkkeys-x11.c (update_keymaps): Increased the keycount to
        (max_keycode - min_keycode) + 1 from (max_keycode - min_keycode).
        (update_keymaps), (gdk_keymap_get_entries_for_keyval) looping through
        less than or equal to max_keycode. (#79184)

21 years agoRemove this
Anders Carlsson [Fri, 4 Oct 2002 18:28:45 +0000 (18:28 +0000)]
Remove this

21 years agomake legal C
jacob berkman [Fri, 4 Oct 2002 17:07:04 +0000 (17:07 +0000)]
make legal C

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

* gdk/x11/gdkscreen-x11.c (init_xinerama_support): make legal C

21 years agoFix envars for uninstalled operation of gdk-pixbuf
Owen Taylor [Fri, 4 Oct 2002 16:17:29 +0000 (16:17 +0000)]
Fix envars for uninstalled operation of gdk-pixbuf

Fri Oct  4 12:05:27 2002  Owen Taylor  <otaylor@redhat.com>

        * demos/Makefile.am (pixbuf_csource): Fix envars
        for uninstalled operation of gdk-pixbuf

        * demos/Makefile.am (test-inline-pixbufs.h): Remove
        output on failure.

21 years agoGet the name right.
Owen Taylor [Fri, 4 Oct 2002 16:08:19 +0000 (16:08 +0000)]
Get the name right.

Fri Oct  4 12:00:10 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkscreen.c (gdk_screen_class_init): Get the
        name right.

        * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_class_init):
        Fix function that should have been static.

21 years agoAdd a check for the Xrandr extension.
Owen Taylor [Fri, 4 Oct 2002 15:58:19 +0000 (15:58 +0000)]
Add a check for the Xrandr extension.

Fri Oct  4 11:43:47 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Add a check for the Xrandr extension.

        * gdk/gdkscreen.[ch]: Add a size-changed signal.

        * gdk/x11/gdkscreen-x11.[ch]: Patch from Keith packard
        to hook up ConfigureNotify events on the root window
        to the ::size-changed signal. (#94560)

        * gtk/gtkimcontextsimple.c: Warning fixes

21 years agoDeprecation cleanup
Manish Singh [Fri, 4 Oct 2002 08:02:14 +0000 (08:02 +0000)]
Deprecation cleanup

Fri Oct  4 00:57:53 2002  Manish Singh  <yosh@gimp.org>

        * gtkhscrollbar.[ch] gtkhseparator.[ch] gtkrange.[ch]
        gtkscrollbar.[ch] gtkseparator.[ch] gtkseparatormenuitem.h
        gtkvscrollbar.[ch] gtkvseparator.[ch]: Deprecation cleanup

21 years agomake it legal C
Manish Singh [Fri, 4 Oct 2002 05:46:51 +0000 (05:46 +0000)]
make it legal C

Thu Oct  3 22:38:12 2002  Manish Singh  <yosh@gimp.org>

        * gdk-pixbuf/queryloaders.c: make it legal C

21 years agomake legal C
jacob berkman [Fri, 4 Oct 2002 05:23:13 +0000 (05:23 +0000)]
make legal C

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

* queryloaders.c (query_module): make legal C

21 years agoimplement maximize for linux-fb
Eric Warmenhoven [Thu, 3 Oct 2002 23:45:03 +0000 (23:45 +0000)]
implement maximize for linux-fb

Thu Oct  3 16:40:18 2002 Eric Warmenhoven <eric@warmenhoven.org>

        * gdk/gdkevents.c, gdk/linux-fb/gdkwindow-fb.c,
        gtk/gtkwindow-decorate.c: implement maximize for linux-fb

        * gdk/linux-fb/gdkkeyboard-fb.c: implement raw keyboard mode

        * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkdnd-fb.c,
        gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkselection-fb.c,
        gdk/linux-fb/miarc.c, gdk/linux-fb/mifpolycon.c,
        gdk/linux-fb/miwideline.c, gdk/linux-fb/mizerclip.c,
        gdk/linux-fb/mizerline.c: small cleanups

21 years agoFix error in computing length and a memory leak. (Fixes #94072, reported
Owen Taylor [Thu, 3 Oct 2002 23:23:16 +0000 (23:23 +0000)]
Fix error in computing length and a memory leak. (Fixes #94072, reported

Thu Oct  3 19:00:55 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
        Fix error in computing length and a memory leak.
        (Fixes #94072, reported by Hema Seetharamaiah)

        * gtk/gtkmenu.c (gtk_menu_motion_notify): Fix &event
        used instead of event.

21 years agoAdjustments for recent gdk-pixbuf changes.
Matthias Clasen [Thu, 3 Oct 2002 22:49:35 +0000 (22:49 +0000)]
Adjustments for recent gdk-pixbuf changes.

21 years agoSupport for separately installed loaders. (#77486)
Matthias Clasen [Thu, 3 Oct 2002 22:39:51 +0000 (22:39 +0000)]
Support for separately installed loaders. (#77486)

* Makefile.am gdk-pixbuf-animation.c gdk-pixbuf-data.c
gdk-pixbuf-io.c gdk-pixbuf-io.h gdk-pixbuf-loader.c
gdk-pixbuf-loader.h gdk-pixbuf-private.h gdk-pixbuf.h
gdk-pixdata.c io-ani-animation.h io-ani.c io-bmp.c
io-gif-animation.c io-gif-animation.h io-gif.c io-ico.c
io-jpeg.c io-png.c io-pnm.c io-ras.c io-tga.c io-tiff.c
io-wbmp.c io-xbm.c io-xpm.c pixbufloader_ani.def
pixbufloader_bmp.def pixbufloader_gif.def pixbufloader_ico.def
pixbufloader_jpeg.def pixbufloader_png.def
pixbufloader_pnm.def pixbufloader_ras.def pixbufloader_tga.def
pixbufloader_tiff.def pixbufloader_wbmp.def
pixbufloader_xbm.def pixbufloader_xpm.def test-gdk-pixbuf.c
gdk-pixbuf-animation.h queryloaders.c: Support for separately
installed loaders.  (#77486)

21 years agoFix memory leak. (#94399)
Owen Taylor [Thu, 3 Oct 2002 22:32:39 +0000 (22:32 +0000)]
Fix memory leak. (#94399)

Thu Oct  3 18:25:57 2002  Owen Taylor  <otaylor@redhat.com>

        * io-jpeg.c (gdk_pixbuf__jpeg_image_save):
        Fix memory leak. (#94399)

21 years agoget XDisplay from window instead of display, as display has not been
Kristian Rietveld [Thu, 3 Oct 2002 21:44:31 +0000 (21:44 +0000)]
get XDisplay from window instead of display, as display has not been

Thu Oct  3 23:53:43 2002  Kristian Rietveld  <kris@gtk.org>

        * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_destroy): get
        XDisplay from window instead of display, as display has not been
        defined here (fixes the build).

21 years agoRestore the pre-Xft2 code to render text directly via RENDER,
Owen Taylor [Thu, 3 Oct 2002 21:17:07 +0000 (21:17 +0000)]
Restore the pre-Xft2 code to render text directly via RENDER,

Thu Oct  3 17:09:23 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/{gdkdrawable-x11.[ch],gdkpixmap-x11.c,
        gdkwindow-x11.c}: Restore the pre-Xft2 code to
        render text directly via RENDER, conditionalized
        with !HAVE_XFT2 so that we'll build again on Xft1
        systems. (#90181)

21 years agoAdd a 'type' parameter, make public.
Owen Taylor [Thu, 3 Oct 2002 20:53:30 +0000 (20:53 +0000)]
Add a 'type' parameter, make public.

Thu Oct  3 14:13:33 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkevents.c (gdk_event_new): Add a 'type'
        parameter, make public.

        * gdk/gdkevents.c (gdk_event_copy): Copy the screen.

        * gdk/gdkevents.c gdk/linux-fb/gdkmain-fb.c
        gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
        _gdk_event_new() => gdk_event_new().

        * gdk/win32/gdkevents-win32.c (real_window_procedure):
        Fix event_private->screen breakage that results from evil
        encapsulation breakage here.

        * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcontainer.c
        gtk/gtkdialog.c gtk/gtkdnd.c gtk/gtkdrawingarea.c
        gtk/gtkimcontextsimple.c gtk/gtklist.c gtk/gtkmenu.c
        gtk/gtknotebook.c gtk/gtkplug.c gtk/gtkselection.c
        gtk/gtktext.c gtk/gtktreeitem.c gtk/gtktreeview.c
        gtk/gtkviewport.c gtk/gtkwindow-decorate.c gtk/gtkwindow.c
        tests/testgtk.c: Remove most usage of stack-allocated
        GdkEvent structures.

        * gtk/gtktreeview.c: Use a cut-and-paste of the full
        send_focus_event() from gtkwindow.c that does the necessary
        notification of the ::has-focus property and setting of
        the HAS_FOCUS flag.x

        * gtk/gtkdnd.c: Clean up some mess/duplicated code; removing
        an extraneous use of a GdkEvent.

21 years agoExport _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbuf
Owen Taylor [Wed, 2 Oct 2002 22:30:37 +0000 (22:30 +0000)]
Export _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbuf

Wed Oct  2 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
        gdk/gdkwindow.c gdk/gdkdrawable.c: Export _gdk_draw_pixbuf
        as gdk_draw_pixbuf(), rename the _draw_pixbuf virtual
        function to draw_pixbuf. (#60582)

        * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable[_alpha]):
        Note that these functions are obsolete in the docs.

        * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
        Remove all the sanity checks now we make it clear
        that it is obsolete name for gdk_draw_pixbuf().

        * gdk/gdkpixmap.c gtk/gtkcellrendererpixbuf.c gtk/gtkimage.c
          gtk/gtkpixmap.c demos/testpixbuf-scale.c demos/testpixbuf.c
          tests/testrgb.c: Use gdk_draw_pixbuf() everywhere.

        * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): Fix
        some warnings.

        * gdk/gdkinternals.h (struct _GdkEventPrivate): Fix missed
        bit from last gdk_event_get_screen() change.

        * gdk/gdkevents.c: Couple of small fixes.i

21 years agoAdd gdk_screen_set_screen()/_get_screen() which (by evil hacks) work for
Owen Taylor [Wed, 2 Oct 2002 21:39:09 +0000 (21:39 +0000)]
Add gdk_screen_set_screen()/_get_screen() which (by evil hacks) work for

Wed Oct  2 17:36:42 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkevents.[ch] gdk/x11/gdkevents-x11.[ch]: Add
        gdk_screen_set_screen()/_get_screen() which (by evil
        hacks) work for for heap allocated events and
        fall back gracefully for stack allocated events.

21 years agoPrivately export: _gtk_settings_set_property_value_from_rc()
Owen Taylor [Wed, 2 Oct 2002 14:22:31 +0000 (14:22 +0000)]
Privately export: _gtk_settings_set_property_value_from_rc()

Wed Oct  2 08:47:31 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtksettings.[ch]: Privately export:
        _gtk_settings_set_property_value_from_rc()
        _gtk_settings_reset_rc_values() so that we can reset
        settings set from RC files when reloading RC files.
        (#94610)

        * gtk/gtkrc.c: Hook up RC file setting resetting.

21 years agoPatch from Andy Wingo to always escape ? to avoid accidentally generating
Owen Taylor [Tue, 1 Oct 2002 21:42:36 +0000 (21:42 +0000)]
Patch from Andy Wingo to always escape ? to avoid accidentally generating

Tue Oct  1 17:35:43 2002  Owen Taylor  <otaylor@redhat.com>

        * gdkpixdata.c: Patch from Andy Wingo to always
        escape ? to avoid accidentally generating trigraphs
        in the output (#94631)

21 years agoDeprecation cleanup
Manish Singh [Tue, 1 Oct 2002 19:55:08 +0000 (19:55 +0000)]
Deprecation cleanup

Tue Oct  1 12:53:44 2002  Manish Singh  <yosh@gimp.org>

        * gtk/gtkwindow-decorate.c gtkwindow.[ch]: Deprecation cleanup

21 years agodeclare parent_class static
jacob berkman [Tue, 1 Oct 2002 19:00:17 +0000 (19:00 +0000)]
declare parent_class static

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

* gtk/gtkinvisible.c:
* gtk/gtkclipboard.c: declare parent_class static

21 years agoFixed alphabetical order (bug #91258).
Stanislav Brabec [Tue, 1 Oct 2002 10:20:15 +0000 (10:20 +0000)]
Fixed alphabetical order (bug #91258).

2002-10-01  Stanislav Brabec  <sbrabec@suse.cz>

* gtk/gtkimcontextsimple.c: Fixed alphabetical order (bug #91258).

21 years agoAdd gtk_menu_focus() so we do not waste time trying to focus a menu item.
Padraig O'Briain [Tue, 1 Oct 2002 09:57:55 +0000 (09:57 +0000)]
Add gtk_menu_focus() so we do not waste time trying to focus a menu item.

* gtk/gtkmenu.c: Add gtk_menu_focus() so we do not waste time
trying to focus a menu item. (bug #91258)

21 years agoSet image->windowing_data to NULL, unref the image. (Late merge from
Tor Lillqvist [Mon, 30 Sep 2002 20:33:24 +0000 (20:33 +0000)]
Set image->windowing_data to NULL, unref the image. (Late merge from

2002-09-30  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
Set image->windowing_data to NULL, unref the image. (Late merge
from stable.)

21 years agoMake the reference to the mnemonic widget weak. (#93334, Murray Cumming)
Owen Taylor [Mon, 30 Sep 2002 20:02:00 +0000 (20:02 +0000)]
Make the reference to the mnemonic widget weak. (#93334, Murray Cumming)

Mon Sep 30 15:45:49 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtklabel.c (gtk_label_set_mnemonic_widget):
        Make the reference to the mnemonic widget weak.
        (#93334, Murray Cumming)

21 years agoRemove a duplicate definition of gdk_set_sm_client_id().
Owen Taylor [Mon, 30 Sep 2002 19:39:20 +0000 (19:39 +0000)]
Remove a duplicate definition of gdk_set_sm_client_id().

Mon Sep 30 15:38:53 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkwindow.h: Remove a duplicate definition
        of gdk_set_sm_client_id().

21 years agoSet the client ID on all displays. (#85713)
Owen Taylor [Mon, 30 Sep 2002 19:38:12 +0000 (19:38 +0000)]
Set the client ID on all displays. (#85713)

Mon Sep 30 15:31:57 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkdisplay.c gdk/x11/gdkdisplay-x11.c
        gdk/gdkinternals.h: Set the client ID on all
        displays. (#85713)

        * gdk/gdkdisplay.h gkd/gdkinternals.h
         gdk/{linux-fb,win32,x11}/gdkmain-{fb,win32,x11}.c
        Privatize gdk_display_set_sm_client_id().

21 years agoInitialize ->parsed field. (#94536, patch from Sebastian Ritau. Maybe
Owen Taylor [Mon, 30 Sep 2002 18:59:03 +0000 (18:59 +0000)]
Initialize ->parsed field. (#94536, patch from Sebastian Ritau. Maybe

Mon Sep 30 14:46:49 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkbindings.c (gtk_binding_set_new): Initialize
        ->parsed field. (#94536, patch from Sebastian Ritau. Maybe
        fixes #87411?)

21 years agoAdd gtk_window_set_icon_from_file(),
Owen Taylor [Mon, 30 Sep 2002 18:58:27 +0000 (18:58 +0000)]
Add gtk_window_set_icon_from_file(),

Mon Sep 30 14:28:58 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwindow.[ch]: Add gtk_window_set_icon_from_file(),
        gtk_window_set_default_icon_from_file() convenience
        functions (#75178, suggestion from Havoc Pennington)

21 years agoAdd construct-only property "tag_table" and make use of it in
Daniel Elstner [Mon, 30 Sep 2002 17:18:16 +0000 (17:18 +0000)]
Add construct-only property "tag_table" and make use of it in

2002-09-30  Daniel Elstner  <daniel.elstner@gmx.net>

* gtk/gtktextbuffer.c: Add construct-only property "tag_table" and make use of it in gtk_text_buffer_new().  (#70227)

21 years agoCompleted ISO-8859-2 characters support (#93421), fixed cacute, umacron,
Stanislav Brabec [Mon, 30 Sep 2002 16:40:04 +0000 (16:40 +0000)]
Completed ISO-8859-2 characters support (#93421), fixed cacute, umacron,

2002-09-30  Stanislav Brabec  <sbrabec@suse.cz>

* gtk/gtkimcontextsimple.c: Completed ISO-8859-2 characters
support (#93421), fixed cacute, umacron, completed dead_key+space
convention.

21 years ago===== Released 2.1.0 ======
Owen Taylor [Mon, 30 Sep 2002 04:13:48 +0000 (04:13 +0000)]
===== Released 2.1.0 ======

Sun Sep 29 23:52:28 2002  Owen Taylor  <otaylor@redhat.com>

        * ===== Released 2.1.0 ======

        * NEWS: Updated

21 years agoDisable tooltips for menu items with submenus .. they still don't really
Owen Taylor [Mon, 30 Sep 2002 00:32:29 +0000 (00:32 +0000)]
Disable tooltips for menu items with submenus .. they still don't really

Sun Sep 29 20:20:26 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktooltips.c (gtk_tooltips_event_handler): Disable
        tooltips for menu items with submenus .. they still
        don't really work properly. (Missed merge from
        stable)

21 years agoClear initial_pos_set even if it only causes a move, not a resize as well.
Owen Taylor [Mon, 30 Sep 2002 00:29:47 +0000 (00:29 +0000)]
Clear initial_pos_set even if it only causes a move, not a resize as well.

Sun Sep 29 20:15:59 2002  Owen Taylor  <otaylor@redhat.com>

       * gtk/gtkwindow.c (gtk_window_move_resize): Clear
        initial_pos_set even if it only causes a move, not
        a resize as well. (Missed merge from stable,
        may fix #89562)

21 years agoadd deprecation compile flags
Manish Singh [Sun, 29 Sep 2002 21:24:24 +0000 (21:24 +0000)]
add deprecation compile flags

Sun Sep 29 14:22:47 2002 Manish Singh  <yosh@gimp.org>

        * contrib/gdk-pixbuf-xlib/Makefile.am demos/Makefile.am
        demos/gtk-demo/Makefile.am: add deprecation compile flags

        * demos/testanimation.c demos/testpixbuf-save.c demos/testpixbuf.c
        demos/gtk-demo/*.c gdk-pixbuf/gdk-pixbuf-animation.c
        gdk-pixbuf/gdk-pixbuf.c: minor cleanups, getting rid of
        unnecessary casts

21 years agouse #defines instead of enum for GtkFundamentalType compat, to prevent
Manish Singh [Sun, 29 Sep 2002 20:11:53 +0000 (20:11 +0000)]
use #defines instead of enum for GtkFundamentalType compat, to prevent

Sun Sep 29 13:11:13 2002  Manish Singh  <yosh@gimp.org>

        * gtk/gtktypeutils.h: use #defines instead of enum for
        GtkFundamentalType compat, to prevent 64-bit vs. 32-bit
        confusion (#90400)

21 years agoInstead of forcing -fnative-struct into CFLAGS when using gcc for Win32,
Tor Lillqvist [Sun, 29 Sep 2002 00:36:29 +0000 (00:36 +0000)]
Instead of forcing -fnative-struct into CFLAGS when using gcc for Win32,

2002-09-29  Tor Lillqvist  <tml@iki.fi>

* configure.in: Instead of forcing -fnative-struct into CFLAGS
when using gcc for Win32, check for gcc version 3.x which uses
-mms-bitfields instead. Also check if either of these switches is
actually available at all, and warn if not. Thanks to Soren
Andersen for the inspiration. (#93965)

21 years agoMinor documentation fixes. (#80021, Yao Zhang; #75567, #75279, Vitaly
Soeren Sandmann [Sat, 28 Sep 2002 20:03:56 +0000 (20:03 +0000)]
Minor documentation fixes. (#80021, Yao Zhang; #75567, #75279, Vitaly

2002-09-01  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtkimcontext.c, gtk/gtktreeviewcolumn.c:

Minor documentation fixes.
(#80021, Yao Zhang; #75567, #75279, Vitaly Tishkov)

21 years agoDon't use .type on Cygwin, either (#91597, Masahiro Sakai).
Tor Lillqvist [Sat, 28 Sep 2002 02:50:58 +0000 (02:50 +0000)]
Don't use .type on Cygwin, either (#91597, Masahiro Sakai).

2002-09-28  Tor Lillqvist  <tml@iki.fi>

* pixops/*.S: Don't use .type on Cygwin, either (#91597, Masahiro
Sakai).

21 years agoMake drawing to the root window work. (#89492)
Matthias Clasen [Fri, 27 Sep 2002 22:57:29 +0000 (22:57 +0000)]
Make drawing to the root window work. (#89492)

* gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init): Make
drawing to the root window work.  (#89492)

21 years ago(#91249, Thomas Leonard)
Owen Taylor [Fri, 27 Sep 2002 22:54:58 +0000 (22:54 +0000)]
(#91249, Thomas Leonard)

Fri Sep 27 18:14:00 2002  Owen Taylor  <otaylor@redhat.com>
        (#91249, Thomas Leonard)

        * gtk/gtkselection.c (gtk_selection_convert): Initialize
        idle time to 0.

        * gtk/gtkselection.c: Up idle timeout to 5 minutes
        from 5 seconds.

21 years agoPatch from J. Ali Harlow to avoid generating gtk.immodules when
Owen Taylor [Fri, 27 Sep 2002 22:10:55 +0000 (22:10 +0000)]
Patch from J. Ali Harlow to avoid generating gtk.immodules when

Fri Sep 27 17:40:47 2002  Owen Taylor  <otaylor@redhat.com>

        * modules/input/Makefile.am: Patch from J. Ali Harlow
        to avoid generating gtk.immodules when cross-compiling.
        (#87774)

21 years agoFree the context if we cannot allocate the HeaderBuf.
Federico Mena Quintero [Fri, 27 Sep 2002 22:06:47 +0000 (22:06 +0000)]
Free the context if we cannot allocate the HeaderBuf.

2002-09-27  Federico Mena Quintero  <federico@ximian.com>

* io-ico.c (gdk_pixbuf__ico_image_begin_load): Free the context if
we cannot allocate the HeaderBuf.

21 years agoFix the update region notification to handle top-to-bottom and
Federico Mena Quintero [Fri, 27 Sep 2002 21:37:30 +0000 (21:37 +0000)]
Fix the update region notification to handle top-to-bottom and

2002-09-27  Federico Mena Quintero  <federico@ximian.com>

* io-bmp.c (OneLine): Fix the update region notification to handle
top-to-bottom and bottom-to-top BMPs correctly.

21 years agoMove gdk_keval_name and gdk_keyval_from_name to new gdkkeynames.c, share
Eric Warmenhoven [Fri, 27 Sep 2002 21:36:11 +0000 (21:36 +0000)]
Move gdk_keval_name and gdk_keyval_from_name to new gdkkeynames.c, share

Fri Sep 27 14:30:34 2002 Eric Warmenhoven <eric@warmenhoven.org>

* gdk/Makefile.am gdk/gdkkeynames.c gdk/linux-fb/gdkmain-fb.c
gdk/win32/gdkkeys-win32.c: Move gdk_keval_name and
gdk_keyval_from_name to new gdkkeynames.c, share implementation for
linux-fb and win32 (#94123)

* gdk/linux-fb/Makefile.am gdk/linux-fb/gdkkeyboard-fb.c
gdk/linux-fb/gdkmain-fb.c gdk/linux-fb/gdkmouse-fb.c: add
-DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile
flags

* gdk/linux-fb/gdkdisplay-fb.c: prevent segfault if display can't
initialize

* gdk/linux-fb/gdkkeyboard-fb.c: better parsing of keycodes

* gdk/linux-fb/gdkwindow-fb.c: add stubs for new functions

21 years agoFix some signed/unsigned warnings. (#85863, David L. Cooper II)
Owen Taylor [Fri, 27 Sep 2002 21:26:18 +0000 (21:26 +0000)]
Fix some signed/unsigned warnings. (#85863, David L. Cooper II)

Fri Sep 27 17:23:31 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkcolorsel.c: Fix some signed/unsigned warnings.
        (#85863, David L. Cooper II)

21 years agori Sep 27 16:23:49 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Fri, 27 Sep 2002 20:50:44 +0000 (20:50 +0000)]
ri Sep 27 16:23:49 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtklabel.c : Replaced instances where strlen (label->label) is
        used to get a byte code with strlen (label->text) as label->text
        contains the actual display text, while label->label contains
        markup / mnemonics. (#92683, Patch from Shivram U
        <shivaram.upadhyayula@wipro.com>, with some additions.)

        * gtk/gtklabel.c (gtk_label_set_uline_text_internal):
        Fix a leftover, now incorrect comment.

21 years agoHandle the case where the first page isn't visible. (#90336, bug tracked
Owen Taylor [Fri, 27 Sep 2002 20:19:16 +0000 (20:19 +0000)]
Handle the case where the first page isn't visible. (#90336, bug tracked

Fri Sep 27 16:15:11 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtknotebook.c (gtk_notebook_get_event_window_position):
        Handle the case where the first page isn't visible.
        (#90336, bug tracked down by Chema Celorio)

21 years agoChange accelerator from C_ut to Cu_t. (#82747, Paolo Maggi)
Owen Taylor [Fri, 27 Sep 2002 19:59:10 +0000 (19:59 +0000)]
Change accelerator from C_ut to Cu_t. (#82747, Paolo Maggi)

Fri Sep 27 15:57:15 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkstock.c (builtin_items): Change accelerator
        from C_ut to Cu_t. (#82747, Paolo Maggi)

21 years agoReset the animation iter on unrealize as well as unmap. (#94336)
Owen Taylor [Fri, 27 Sep 2002 19:54:51 +0000 (19:54 +0000)]
Reset the animation iter on unrealize as well as unmap. (#94336)

Fri Sep 27 15:27:45 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkimage.c (gtk_image_unrealize): Reset the
        animation iter on unrealize as well as unmap.
        (#94336)

        * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Don't
        turn a value of "" into NULL. (#94157, Vitaly Tishkov)

21 years ago- use gtk_settings_get_for_screen () instead of gtk_settings_get_default
Hidetoshi Tajima [Thu, 26 Sep 2002 22:51:34 +0000 (22:51 +0000)]
- use gtk_settings_get_for_screen () instead of gtk_settings_get_default

      * modules/input/gtkimcontextxim.c:
       - use gtk_settings_get_for_screen () instead of
         gtk_settings_get_default () for multihead
       - connect property-notify signal handlers to respond runtime
         changes of status_style and preedit_style in the settings
       - Some indentation and code cleanup (#59076 - 2nd check-in)

21 years agofix GtkWindowMnemonic to have a separate typedef
Havoc Pennington [Wed, 25 Sep 2002 19:16:46 +0000 (19:16 +0000)]
fix GtkWindowMnemonic to have a separate typedef

2002-09-24  Havoc Pennington  <hp@redhat.com>

* gtk/gtkwindow.c: fix GtkWindowMnemonic to have a separate
typedef

* gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): monitor
FULLSCREEN state

* tests/testgtk.c (get_state_controls): add
fullscreen/unfullscreen test

* gdk/gdkdisplay.c (gdk_display_finalize): fix unused variable

* gdk/x11/gdkscreen-x11.c (init_xinerama_support): fix unused
variable

* gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): mop up unused
variable

* gdk/x11/gdkscreen-x11.c
(_gdk_x11_screen_window_manager_changed): emit
window_manager_changed signal

* gdk/x11/gdkscreen-x11.h (struct _GdkScreenX11Class): add
window_manager_changed signal

* gdk/x11/gdkevents-x11.c
(gdk_x11_screen_get_window_manager_name): new function

* gtk/gtkwindow.c (gtk_window_class_init): add type_hint,
skip_taskbar_hint, skip_pager_hint properties
(gtk_window_set_skip_taskbar_hint):
(gtk_window_get_skip_taskbar_hint):
(gtk_window_set_skip_pager_hint):
(gtk_window_get_skip_pager_hint):
(gtk_window_fullscreen):
(gtk_window_unfullscreen): new functions

* gdk/gdkevents.h (GdkWindowState): add FULLSCREEN state

* gdk/gdkwindow.h (GdkWindowTypeHint): add missing type hint
values

* gdk/x11/gdkwindow-x11.c (gdk_window_set_skip_taskbar_hint):
(gdk_window_set_skip_pager_hint):
(gdk_window_fullscreen):
(gdk_window_unfullscreen): new functions
(set_initial_hints): set fullscreen here if appropriate

21 years agoAdd gdk_screen_make_display_name(), which returns a display name that can
Owen Taylor [Wed, 25 Sep 2002 15:07:47 +0000 (15:07 +0000)]
Add gdk_screen_make_display_name(), which returns a display name that can

Wed Sep 25 10:51:24 2002  Owen Taylor  <otaylor@redhat.com>
        * gdk/gdkscreen.h gdk/{x11,win32,linux-fb}/gdkscreen-*.c:
        Add gdk_screen_make_display_name(), which returns a
        display name that can be used to open a display with the
        screen as the default (Based on patch from Mark McLoughlin,
        #86013)

21 years agoPatch from Eric Warmenhoven, #94123
Owen Taylor [Wed, 25 Sep 2002 12:58:36 +0000 (12:58 +0000)]
Patch from Eric Warmenhoven, #94123

Wed Sep 25 08:50:40 2002  Owen Taylor  <otaylor@redhat.com>

        Patch from Eric Warmenhoven, #94123

        * gdk/gdkmouse-fb.c: Add scrolling support for
        imps2 mice.

        * gdk/linux-fb/gdkimage-fb.c: Fix compilation error
        in last gdkimage-fb.c commit.

21 years agoadd -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile
Manish Singh [Wed, 25 Sep 2002 07:23:55 +0000 (07:23 +0000)]
add -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile

Wed Sep 25 00:16:53 2002  Manish Singh  <yosh@gimp.org>

        * gdk/Makefile.am gdk/x11/Makefile.am: add -DG_DISABLE_DEPRECATED
        and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile flags

        * gdk/gdkcolor.c gdk/gdkdisplay.c gdk/gdkdraw.c gdk/gdkevents.c
        gdk/gdkgc.c gdk/gdkimage.c gdk/gdkpango.c gdk/gdkpixbuf-render.c
        gdk/gdkpixmap.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/linux-fb/gdkdnd-fb.c
        gdk/linux-fb/gdkfont-fb.c gdk/win32/gdkdnd-win32.c
        gdk/win32/gdkfont-win32.c gdk/x11/gdkdisplay-x11.c gdk/x11/gdkdnd-x11.c
        gdk/x11/gdkdrawable-x11.c gdk/x11/gdkevents-x11.c gdk/x11/gdkfont-x11.c
        gdk/x11/gdkgc-x11.c gdk/x11/gdkgeometry-x11.c gdk/x11/gdkim-x11.c
        gdk/x11/gdkinput-x11.c gdk/x11/gdkkeys-x11.c gdk/x11/gdkscreen-x11.c
        gdk/x11/gdkwindow-x11.c: Deprecation cleanup, mostly changing
        gdk_foo_{ref,unref} to g_object equivalents.

21 years agocheck if last_selected is valid before doing a strcmp on it, which may
Manish Singh [Wed, 25 Sep 2002 06:54:58 +0000 (06:54 +0000)]
check if last_selected is valid before doing a strcmp on it, which may

Tue Sep 24 23:54:20 2002  Manish Singh  <yosh@gimp.org>

        * gtk/gtkfilesel.c: check if last_selected is valid before doing
        a strcmp on it, which may happen if selections happen programmatically
        instead of through the UI (#86566)

21 years agopreserve ordering from gtk_tree_selection_foreach when returning filenames
Manish Singh [Wed, 25 Sep 2002 06:34:33 +0000 (06:34 +0000)]
preserve ordering from gtk_tree_selection_foreach when returning filenames

Tue Sep 24 23:33:48 2002  Manish Singh  <yosh@gimp.org>

        * gtk/gtkfilesel.c: preserve ordering from gtk_tree_selection_foreach
        when returning filenames for gtk_file_selection_get_selections
        (#86567)

        * gtk/gtkclipboard.c: GtkClipboard struct should have a GObject
        in it, not a GObjectClass

21 years agoMake a GObject (#75970, James Henstridge)
Owen Taylor [Tue, 24 Sep 2002 23:59:32 +0000 (23:59 +0000)]
Make a GObject (#75970, James Henstridge)

Tue Sep 24 18:18:36 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkclipboard.[ch]: Make a GObject (#75970, James
        Henstridge)

21 years agoLook up the visual as well as the colormap, since calling
Owen Taylor [Tue, 24 Sep 2002 23:54:12 +0000 (23:54 +0000)]
Look up the visual as well as the colormap, since calling

Tue Sep 24 19:45:55 2002  Owen Taylor  <otaylor@redhat.com>
        * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_colormap):
        Look up the visual as well as the colormap, since calling
        gdk_drawable_get_visual() causes infinite recursion.

        * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
        Set the colormap for the root window.

21 years ago disable/enable preedit/status in GtkIMContextXIM (#59076)
Hidetoshi Tajima [Tue, 24 Sep 2002 22:55:41 +0000 (22:55 +0000)]
disable/enable preedit/status in GtkIMContextXIM (#59076)

* gnome-settings-xsettings.c: added two new xsettings
for GTK+ input method preedit and status styles.

With the other patch for gtk+, the preedit and status styles of
GTK+ input method are configurable with associated gconf schemas
keys:
"/desktop/gnome/interface/gtk-im-preedit-style"
"/desktop/gnome/interface/gtk-im-status-style"

Both are set to "callback" by default, and platform's
packging can have different default by changing
libgnome's desktop_gnome_interface.schemas.

21 years agoReplace leftover gdkx_visual_get_for_screen () by
Matthias Clasen [Tue, 24 Sep 2002 22:09:46 +0000 (22:09 +0000)]
Replace leftover gdkx_visual_get_for_screen () by

* gdk/x11/gdkvisual-x11.c (gdkx_visual_get): Replace leftover
gdkx_visual_get_for_screen () by gdk_x11_screen_lookup_visual().

21 years agoAdd a missing ; to make things compile.
Matthias Clasen [Tue, 24 Sep 2002 21:59:54 +0000 (21:59 +0000)]
Add a missing ; to make things compile.

* gtk/gtkaccelgroup.h: Add a missing ; to make things compile.

21 years agoReplace leftover gdk_colormap_lookup () by gdk_x11_colormap_foreign_new ()
Matthias Clasen [Tue, 24 Sep 2002 21:58:09 +0000 (21:58 +0000)]
Replace leftover gdk_colormap_lookup () by gdk_x11_colormap_foreign_new ()

* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_colormap):
Replace leftover gdk_colormap_lookup () by
gdk_x11_colormap_foreign_new () to make the linker happy.

21 years agoAdd a GtkAccelGroupFindFunc to clean up the prototype. (#76670, Vitaly
Owen Taylor [Tue, 24 Sep 2002 21:54:15 +0000 (21:54 +0000)]
Add a GtkAccelGroupFindFunc to clean up the prototype. (#76670, Vitaly

Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find):
        Add a GtkAccelGroupFindFunc to clean up the
        prototype. (#76670, Vitaly Tishkov)

        * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
        gdkx_visual_get_for_screen() to
        gdk_x11_screen_lookup_visual(). (#85702)

21 years agoMerge from gtk-2-0:
Tor Lillqvist [Tue, 24 Sep 2002 21:53:19 +0000 (21:53 +0000)]
Merge from gtk-2-0:

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

* gdk/win32/gdkevents-win32.c (gdk_event_translate):
WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
order to be able to handle it normally in the application. Set
ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
way we can generate GDK events also for Alt-Fn keys, for instance.

21 years agoAdd a missing ; to make things compile.
Matthias Clasen [Tue, 24 Sep 2002 21:31:22 +0000 (21:31 +0000)]
Add a missing ; to make things compile.

* gdk/x11/gdkx.h: Add a missing ; to make things compile.

21 years agoMake icon sizes configurable (#70648, slightly based on a patch from Bill
Owen Taylor [Tue, 24 Sep 2002 21:03:58 +0000 (21:03 +0000)]
Make icon sizes configurable (#70648, slightly based on a patch from Bill

Tue Sep 24 16:40:14 2002  Owen Taylor  <otaylor@redhat.com>

Make icon sizes configurable (#70648, slightly based
on a patch from Bill Haneman, Brian Cameron)

* gtk/gtkiconfactory.[ch]: Add
gtk_icon_size_lookup_for_settings().

* gtk/gtksettings.c: Add gtk-icon-sizes XSETTING

* gtk/gtkiconfactory.c: Make icon sizes per-GtkSettings.

* gtk/gtkstyle.c: Use gtk_icon_size_lookup_for_settings()

* gtk/gtkrc.[ch]: Privately export _gtk_rc_reset_styles()
to force all the widgets to recompute their appearance.

21 years agoDoc twiddle
Owen Taylor [Tue, 24 Sep 2002 20:37:20 +0000 (20:37 +0000)]
Doc twiddle

21 years agogdk/win32/gdkimage-win32.c gdk/x11/gdkimage-x11.c Add bounds-checking
Owen Taylor [Tue, 24 Sep 2002 20:29:28 +0000 (20:29 +0000)]
gdk/win32/gdkimage-win32.c gdk/x11/gdkimage-x11.c Add bounds-checking

Tue Sep 24 16:24:22 2002  Owen Taylor  <otaylor@redhat.com>
        * gdk/win32/gdkimage-win32.c gdk/x11/gdkimage-x11.c
        * gdk/linux-fb/gdkimage-fb.c (gdk_image_put/get_pixel):
        Add bounds-checking g_return_if_fail(). (Olexiy Avramchenko)

21 years agoDelete unused private gdk_visual_lookup(), make gdk_colormap_lookup()
Owen Taylor [Tue, 24 Sep 2002 20:20:08 +0000 (20:20 +0000)]
Delete unused private gdk_visual_lookup(), make gdk_colormap_lookup()

Tue Sep 24 16:04:44 2002  Owen Taylor  <otaylor@redhat.com>

        * gdkprivate-x11.h gdkcolor-x11.c gdkvisual-x11.c
        gdkwindow-x11.c: Delete unused private gdk_visual_lookup(),
        make gdk_colormap_lookup() private gdkcolor-x11.c.
        make gdk_window_add_colormap_windows private to gdkwindow-x11.c
        (#85674)

        * gdk/x11/gdkx.h gdk/x11/gdkcolor-x11.c
        gdkscreen-x11.h: Add gdk_x11_colormap_foreign_new(),
        GDK_ENABLE_BROKEN gdkx_colormap_get(), make the
        colormap hash per-screen. (#85697)

        * gdk/x11/gdkxid.c (gdk_xid_table_lookup_for_display):
        Remove a bit of unecessary code.

21 years agoFixed bug #93072 by Juan Manuel García Molina <juanma_gm@wanadoo.es>.
German Poo Caaman~o [Tue, 24 Sep 2002 16:11:20 +0000 (16:11 +0000)]
Fixed bug #93072 by Juan Manuel García Molina <juanma_gm@wanadoo.es>.

2002-09-24  German Poo Caaman~o <gpoo@ubiobio.cl>

* es.po: Fixed bug #93072 by Juan Manuel García Molina
<juanma_gm@wanadoo.es>.

21 years agoRemove the check for editable. (Reported by Brent Fox)
Owen Taylor [Tue, 24 Sep 2002 10:39:23 +0000 (10:39 +0000)]
Remove the check for editable. (Reported by Brent Fox)

Thu Aug  8 16:58:22 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkspinbutton.c (gtk_spin_button_real_change_value):
        Remove the check for editable. (Reported by Brent Fox)

21 years agoHonor GTK_WIDGET_APP_PAINTABLE() (#92305, Jonathan Blandford.)
Owen Taylor [Tue, 24 Sep 2002 10:22:45 +0000 (10:22 +0000)]
Honor GTK_WIDGET_APP_PAINTABLE() (#92305, Jonathan Blandford.)

Tue Sep 24 06:17:37 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkeventbox.c (gtk_event_box_paint): Honor
        GTK_WIDGET_APP_PAINTABLE() (#92305, Jonathan Blandford.)

21 years agoChange the window parameter for
Owen Taylor [Tue, 24 Sep 2002 09:53:25 +0000 (09:53 +0000)]
Change the window parameter for

Tue Sep 24 05:26:31 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
        gdk/x11/gdkevents-x11.c  gdk/win32/gdkevents-win32.c:
        Change the window parameter for
        gdk_event_send_client_message[_for_display] from guint32
        to GdkNativeWindow. (#79979)

21 years agoFix up a bit to look for the loaders in the right place. (#93011, Dennis
Owen Taylor [Tue, 24 Sep 2002 09:21:48 +0000 (09:21 +0000)]
Fix up a bit to look for the loaders in the right place. (#93011, Dennis

Tue Sep 24 05:16:25 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk+.spec.in: Fix up a bit to look for the loaders
        in the right place. (#93011, Dennis Dementiev)

21 years agoFixes to GtkIMContextSimple compose table for us-intl keyboards (Red Hat
Owen Taylor [Tue, 24 Sep 2002 09:14:09 +0000 (09:14 +0000)]
Fixes to GtkIMContextSimple compose table for us-intl keyboards (Red Hat

Tue Sep 24 05:12:14 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkimcontextsimple.c: Fixes to GtkIMContextSimple
        compose table for us-intl keyboards (Red Hat bugzilla
        #70995, Alexandre Oliva)

21 years agoChain up so that entry->activates_default is honored. (#93865, Pieter
Owen Taylor [Tue, 24 Sep 2002 08:57:57 +0000 (08:57 +0000)]
Chain up so that entry->activates_default is honored. (#93865, Pieter

Tue Sep 24 04:50:28 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkspinbutton.c (gtk_spin_button_activate):
        Chain up so that entry->activates_default is honored.
        (#93865, Pieter Penninckx)

21 years agocpp macros aren't ``;'' terminated
Jacob Berkman [Tue, 24 Sep 2002 02:52:40 +0000 (02:52 +0000)]
cpp macros aren't ``;'' terminated

2002-09-23  Jacob Berkman  <jacob@ximian.com>

* gtk/gtkprogress.c (DEFAULT_FORMAT): cpp macros aren't ``;''
terminated

21 years agoPrivatize gtk_selection_request, gtk_selection_incr_event
Owen Taylor [Mon, 23 Sep 2002 23:59:23 +0000 (23:59 +0000)]
Privatize gtk_selection_request, gtk_selection_incr_event

Mon Sep 23 19:49:11 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkselection.[ch] gtk/gtkwidget.c gtk/gtkmain.c:
        Privatize gtk_selection_request, gtk_selection_incr_event
        gtk_selection_notify, gtk_selection_property_notify.
        Add doc note about future deprecation of gtk_selection_clear()
        which. (#85683)

        * gtk/gtkoldeditable.c (gtk_old_editable_selection_clear):
        Chain up, rather than calling gtk_selection_clear().

21 years agoAdd missing bug # reference
Owen Taylor [Mon, 23 Sep 2002 22:58:36 +0000 (22:58 +0000)]
Add missing bug # reference

21 years agoRestore back to the default format instead of an empty format.
Owen Taylor [Mon, 23 Sep 2002 22:57:13 +0000 (22:57 +0000)]
Restore back to the default format instead of an empty format.

Mon Sep 23 18:53:35 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
        Restore back to the default format instead of an
        empty format.

        * gtk/gtkprogress.c (gtk_progress_set_format_string):
        Make NULL restore back to the default format.

21 years agoAllow accel_path == NULL. (#84241, James Henstridge.)
Owen Taylor [Mon, 23 Sep 2002 22:46:28 +0000 (22:46 +0000)]
Allow accel_path == NULL. (#84241, James Henstridge.)

Mon Sep 23 18:45:46 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path):
        Allow accel_path == NULL. (#84241, James Henstridge.)

21 years agoi Add gtk_notebook_get_n_pages (#73229, Havoc Pennington)
Owen Taylor [Mon, 23 Sep 2002 22:05:41 +0000 (22:05 +0000)]
i Add gtk_notebook_get_n_pages (#73229, Havoc Pennington)

Mon Sep 23 18:01:52 2002  Owen Taylor  <otaylor@redhat.com>
i
        * gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
        (#73229, Havoc Pennington)

        * gtk/gtknotebook.c (gtk_notebook_get_nth_page): Handle
        -1 to mean the last page, as we do elsewhere. (#73229)

21 years agoMake gtk_menu_shell_select_first() public. (#70374)
Owen Taylor [Mon, 23 Sep 2002 21:53:20 +0000 (21:53 +0000)]
Make gtk_menu_shell_select_first() public. (#70374)

Mon Sep 23 17:50:23 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmenushell.[ch] gtk/gtkentry.c gtk/gtkmenubar.c
        gtk/gtkmenuitem.c gtk/gtktextview.c: Make
        gtk_menu_shell_select_first() public. (#70374)

21 years agoAdd a keys_changed signal emitted when the keymap changes. (#72148)
Owen Taylor [Mon, 23 Sep 2002 21:35:00 +0000 (21:35 +0000)]
Add a keys_changed signal emitted when the keymap changes. (#72148)

Mon Sep 23 16:48:46 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkkeys.[ch] gdk/x11/gdkkeys-x11.c gdk/x11/gdkevents-x11.c:
        Add a keys_changed signal emitted when the keymap changes.
        (#72148)

        * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry):
        Hook up code to handle keymap changes, change to keep
        a linked list of keymap entries so that we can reinsert
        them in the same order on a keymap change.

21 years agoUse 'signed int' not 'gint' for signed bitfields. (#93020, Vitaly Tishkov)
Owen Taylor [Mon, 23 Sep 2002 19:20:48 +0000 (19:20 +0000)]
Use 'signed int' not 'gint' for signed bitfields. (#93020, Vitaly Tishkov)

Mon Sep 23 14:58:04 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkhandlebox.h gtk/gtktextbtree.[ch]:
        Use 'signed int' not 'gint' for signed bitfields.
        (#93020, Vitaly Tishkov)

        * gtk/gtktextlayout.h gtk/gtktextbtree.[ch]:
        Fix some 'gint' bitfields that should have been
        unsigned.

21 years agoFix incorrect usage of gdk_get_default_root_window ()). (#92767)
Owen Taylor [Mon, 23 Sep 2002 16:27:12 +0000 (16:27 +0000)]
Fix incorrect usage of gdk_get_default_root_window ()). (#92767)

Mon Sep 23 12:24:14 2002  Owen Taylor  <otaylor@redhat.com>
        * modules/input/gtkimcontextxim.c (status_window_get):
        Fix incorrect usage of gdk_get_default_root_window ()).
        (#92767)

21 years agoPatch from Joshua N Pritikin to fix problem where signal connection wasn't
Owen Taylor [Mon, 23 Sep 2002 16:14:15 +0000 (16:14 +0000)]
Patch from Joshua N Pritikin to fix problem where signal connection wasn't

Mon Sep 23 12:12:48 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
        fix problem where signal connection wasn't removed
        from adjustment on finalize. (#93962)

21 years agoPatch from Eric Warmenhoven to with miscellaneous linux-fb fixes,
Owen Taylor [Sun, 22 Sep 2002 22:32:05 +0000 (22:32 +0000)]
Patch from Eric Warmenhoven to with miscellaneous linux-fb fixes,

Sun Sep 22 18:22:37 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/linux-fb/{gdkinput.c,gdkkeyboard-fb.c,gdk/linux-fb/gdkmain-fb.c,
        gdk/linux-fb/gdkprivate-fb.h, gdk/linux-fb/gdkwindow-fb.c}:
        Patch from Eric Warmenhoven to with miscellaneous linux-fb
        fixes, including a fix for a crash in
        gdk_keymap_get_entries_for_keycode (#87420)

21 years agoMark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383)
Matthias Clasen [Sat, 21 Sep 2002 23:26:14 +0000 (23:26 +0000)]
Mark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383)

* gdk/gdkdraw.c (gdk_drawable_get_type):
* gdk/gdkgc.c (gdk_gc_get_type):
* gtk/gtkmenushell.c (gtk_menu_shell_get_type):
* gtk/gtkimcontext.c (gtk_im_context_get_type):
* gtk/gtkprogress.c (gtk_progress_get_type):
* gtk/gtkoldeditable.c (gtk_old_editable_get_type):
* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_type):
* gtk/gtkwidget.c (gtk_widget_get_type):
* gtk/gtkseparator.c (gtk_separator_get_type):
* gtk/gtkscrollbar.c (gtk_scrollbar_get_type):
* gtk/gtkscale.c (gtk_scale_get_type):
* gtk/gtkrange.c (gtk_range_get_type):
* gtk/gtkpaned.c (gtk_paned_get_type):
* gtk/gtkmisc.c (gtk_misc_get_type):
* gtk/gtkitem.c (gtk_item_get_type):
* gtk/gtkcontainer.c (gtk_container_get_type):
* gtk/gtkbbox.c (gtk_button_box_get_type):
* gtk/gtkbox.c (gtk_box_get_type):
* gtk/gtkbin.c (gtk_bin_get_type):
* gtk/gtkobject.c (gtk_object_get_type): Mark abstract types as
G_TYPE_FLAG_ABSTRACT.  (#72383)

21 years agoCopy from X11 backend. The old version mishandled consecutive newlines.
Tor Lillqvist [Sat, 21 Sep 2002 12:59:31 +0000 (12:59 +0000)]
Copy from X11 backend. The old version mishandled consecutive newlines.

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

* gdk/win32/gdkselection-win32.c (sanitize_utf8): Copy from X11
backend. The old version mishandled consecutive newlines.

* tests/testgtkrc: Remove obsolete mention of gtk-engines and
Pixmap theme engine on Win32.

21 years agoSet the IM context client window to NULL, not to the window that is about
Owen Taylor [Fri, 20 Sep 2002 22:06:28 +0000 (22:06 +0000)]
Set the IM context client window to NULL, not to the window that is about

Fri Sep 20 18:01:26 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkentry.c (gtk_entry_unrealize): Set the IM
        context client  window to NULL, not to the window that
        is about to be destroyed. (#88231)

21 years agoFri Sep 20 16:56:54 2002 Owen Taylor <otaylor@redhat.com> ...
Owen Taylor [Fri, 20 Sep 2002 21:03:43 +0000 (21:03 +0000)]
Fri Sep 20 16:56:54 2002  Owen Taylor  <otaylor@redhat.com>                                                                                                             * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings):                                Return TRUE if force_load was specified. (#93738,                               Vitaly Tishkov.)

21 years agoOn Win32, look explicitly for LANG, LC_ALL and LC_CTYPE, and if not found,
Tor Lillqvist [Thu, 19 Sep 2002 23:29:30 +0000 (23:29 +0000)]
On Win32, look explicitly for LANG, LC_ALL and LC_CTYPE, and if not found,

2002-09-20  Tor Lillqvist  <tml@iki.fi>

* gtk/gtkmain.c (gtk_get_default_language): On Win32, look
explicitly for LANG, LC_ALL and LC_CTYPE, and if not found, use
g_win32_getlocale(). The setlocale() in msvcrt.dll would return a
locale name in the form Swedish_Finland for sv_FI.

21 years agoDelete leftover declarations of the obsolete Win32-only functions
Tor Lillqvist [Thu, 19 Sep 2002 23:27:10 +0000 (23:27 +0000)]
Delete leftover declarations of the obsolete Win32-only functions

2002-09-20  Tor Lillqvist  <tml@iki.fi>

* gdk/gdkfont.h: Delete leftover declarations of the obsolete
Win32-only functions gdk_font_full_name_get() and
gdk_font_full_name_free().

* gdk/gdk.def: Delete from here, too.

* gdk/win32/gdkfont-win32.c (logfont_to_xlfd,
gdk_font_full_name_get, gdk_font_full_name_free): Delete
implementation, and helper functions.

(pattern_match, InnerEnumFontFamExProc, EnumFontFamExProc,
gdk_font_list_new, gdk_font_list_free): Delete unused functions.

(gdk_text_width, gdk_text_width_wc) Instead of code duplication,
let gdk_text_extents() and gdk_text_extents_wc() do the job.

* gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
Don't use the above removed functions in debugging output.

* gdk/win32/gdkdisplay-win32.c
* gdk/win32/gdkmain-win32.c
* gdk/win32/gdkprivate-win32.h
* gdk/win32/gdkselection-win32.c
* gdk/win32/gdkinput-win32.h
* gdk/win32/gdkinput.c: Make it compile again, pass a GdkDisplay in
a couple of places.

21 years agoRemove the _-prefix from gdk_pixbuf_set_option and
Matthias Clasen [Thu, 19 Sep 2002 21:00:52 +0000 (21:00 +0000)]
Remove the _-prefix from gdk_pixbuf_set_option and
gdk_pixbuf_non_anim_new again.