]> Pileus Git - ~andy/gtk/log
~andy/gtk
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.

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

21 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

21 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.

21 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)

21 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)

21 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,[])

21 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.

21 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)

21 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.

21 years agoUpdated Ukrainian translation.
Andrew V. Samoilov [Wed, 19 Jun 2002 11:01:41 +0000 (11:01 +0000)]
Updated Ukrainian translation.

* uk.po: Updated Ukrainian translation.

21 years agoUpdated Russian translation.
Andrew V. Samoilov [Wed, 19 Jun 2002 10:26:50 +0000 (10:26 +0000)]
Updated Russian translation.

* ru.po: Updated Russian translation.

21 years agoSet the display.
Owen Taylor [Tue, 18 Jun 2002 23:37:05 +0000 (23:37 +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.

21 years agoTypo fix.
Owen Taylor [Tue, 18 Jun 2002 23:29:10 +0000 (23:29 +0000)]
Typo fix.

Tue Jun 18 19:30:25 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktreeview.c: Typo fix.

21 years agoMake the core pointer object per-display. (#85698)
Owen Taylor [Tue, 18 Jun 2002 23:23:30 +0000 (23:23 +0000)]
Make the core pointer object per-display. (#85698)

Tue Jun 18 19:11:51 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkdisplay.[ch] gdk/gdkevents.c gdk/gdkinput.h
        gdk/gdkinternals.h gdk/win32/gdkevents-win32.c
        gdk/win32/gdkinput-win32.[ch] gdk/x11/gdkevents-x11.c
        gdk/x11/gdkinput{,-none,-x11}.c gdk/x11/gdkinputprivate.h:
        Make the core pointer object per-display. (#85698)

21 years agoAdded Bulgarian (bg).
Yanko Kaneti [Tue, 18 Jun 2002 21:33:57 +0000 (21:33 +0000)]
Added Bulgarian (bg).

2002-06-18  Yanko Kaneti <yaneti@declera.com>

   * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).

po/

   * bg.po (added): Bulgarian translation by
   Borislav Aleksandrov <B.Aleksandrov@cnsys.bg>.

100%

21 years agoFix for cursor screen => display change.
Owen Taylor [Tue, 18 Jun 2002 21:02:11 +0000 (21:02 +0000)]
Fix for cursor screen => display change.

Tue Jun 18 17:02:48 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk-sections.txt: Fix for cursor screen => display
        change.

21 years agoReplace gdk_cursor_new_for_screen() with gdk_cursor_new_for_display().
Owen Taylor [Tue, 18 Jun 2002 20:59:44 +0000 (20:59 +0000)]
Replace gdk_cursor_new_for_screen() with gdk_cursor_new_for_display().

Tue Jun 18 14:41:48 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkcursor.[ch] gdk/x11/gdkcursor-x11.c
        gdk/x11/gdkprivate-x11.h gdk/win32/gdkcursor-win32.c: Replace
        gdk_cursor_new_for_screen() with gdk_cursor_new_for_display().
        (#85671)

        * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcurve.c gtk/gtkdnd.c
        gtk/gtkentry.c gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtklabel.c
        gtk/gtkpaned.c gtk/gtktext.c gtk/gtktextview.c
        gtk/gtktipsquery.c gtk/gtktreeviewcolumn.c:
        Adapt to above change.

21 years agoue Jun 18 12:04:10 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Tue, 18 Jun 2002 18:35:41 +0000 (18:35 +0000)]
ue Jun 18 12:04:10 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk.c (gdk_init_check): Change handling
        of gdk_intialized(), so that gdk_parse_args(),
        gdk_init_check() sequence works.

21 years agoAdd a gboolean create argument, so we don't create the structure unless we
Owen Taylor [Tue, 18 Jun 2002 15:45:05 +0000 (15:45 +0000)]
Add a gboolean create argument, so we don't create the structure unless we

Tue Jun 18 11:46:33 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkwindow-x11.c (get_move_resize_data): Add
        a gboolean create argument, so we don't create the
        structure unless we actually emulate move-resize
        drags.

21 years agofix bugzilla references
Owen Taylor [Sun, 16 Jun 2002 13:48:20 +0000 (13:48 +0000)]
fix bugzilla references

22 years agoActually use the UTF-8 filename, so we actually fix #83386.
Owen Taylor [Sun, 16 Jun 2002 03:58:44 +0000 (03:58 +0000)]
Actually use the UTF-8 filename, so we actually fix #83386.

Sat Jun 15 23:53:03 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c (gtk_file_selection_set_filename):
        Actually use the UTF-8 filename, so we actually
        fix #83386.

        * tests/testgtk.c: Remember the directory as a
        test of gtk_file_selection_set_filename().

22 years agoFix backwards asssertion. (#85434)
Owen Taylor [Sun, 16 Jun 2002 03:12:05 +0000 (03:12 +0000)]
Fix backwards asssertion. (#85434)

Sat Jun 15 23:05:19 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c (gtk_file_selection_set_filename):
        Fix backwards asssertion. (#85434)

22 years agoNotify about "background-full-height-set", not "bg_full_height_set".
James M. Cape [Sat, 15 Jun 2002 21:14:37 +0000 (21:14 +0000)]
Notify about "background-full-height-set", not "bg_full_height_set".

Sat Jun 15 16:10:00 2002  James M. Cape <jcape@ignore-your.tv>

* gtk/gtktexttag.c (gtk_text_tag_set_property):
Notify about "background-full-height-set", not
"bg_full_height_set".

22 years agoFix bug #84268, where validate_rows sometimes didn't remove itself
Jonathan Blandford [Fri, 14 Jun 2002 19:43:12 +0000 (19:43 +0000)]
Fix bug #84268, where validate_rows sometimes didn't remove itself

Fri Jun 14 15:41:50 2002  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreeview.c: Fix bug #84268, where validate_rows sometimes
didn't remove itself correctly.  Thanks to Dave Camp for the fix.

22 years agodisconnect_by_func instead of disconnect_by_data. Someone else could use
Jonathan Blandford [Fri, 14 Jun 2002 19:20:21 +0000 (19:20 +0000)]
disconnect_by_func instead of disconnect_by_data. Someone else could use

Fri Jun 14 15:09:11 2002  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtktreeview.c (gtk_tree_view_set_adjustments):
disconnect_by_func instead of disconnect_by_data.  Someone else
could use the same data as us.

* gtk/gtktreeview.c (do_validate_rows): update the adjustment
immediately after we update the size.  Fixes some scroll_to bugs.
(validate_visible_area): ditto

22 years agoIgnore state change events for windows that aren't our toplevels. (#84482,
Owen Taylor [Fri, 14 Jun 2002 14:34:09 +0000 (14:34 +0000)]
Ignore state change events for windows that aren't our toplevels. (#84482,

Fri Jun 14 10:31:59 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
        Ignore state change events for windows that aren't
        our toplevels. (#84482, Thomas Leonard)

22 years agori Jun 14 10:00:29 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Fri, 14 Jun 2002 14:16:06 +0000 (14:16 +0000)]
ri Jun 14 10:00:29 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkwindow.c (gdk_window_update_idle): Add
        missing GDK_THREADS_ENTER()/GDK_THREADS_LEAVE().
        (Report of non-thread-safety from Nicholas Allen)

        * gtk/gtkmain.c (rewrite_events_translate): Fix sign
        problem with coordinate translation. (Fix from
        Robin Lu, #85229)

22 years agoFix type names for GtkIconSet, GtkIconSource, GtkSelectionData, GtkBorder,
Owen Taylor [Thu, 13 Jun 2002 23:44:59 +0000 (23:44 +0000)]
Fix type names for GtkIconSet, GtkIconSource, GtkSelectionData, GtkBorder,

Thu Jun 13 19:41:56 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkiconfactory.c gtk/gtkselection.c gtk/gtkstyle.c
        gtk/gtktextiter.c gtk/gtktexttag.c gtk/gtktreemodel.c
        gtk/gtkwidget.c: Fix type names for GtkIconSet,
        GtkIconSource, GtkSelectionData, GtkBorder, GtkTextIter,
        GtkTextAttributes, GtkTreePath, GtkTreeIter,
        GtkRequisition, which were all registered as GtkType*.
        (#84634, James Henstridge; patch from Jonathan Blandford.)

22 years agoMake work gdk_colormap_sync() work for DirectColor visuals as well. Fill
Owen Taylor [Thu, 13 Jun 2002 22:52:52 +0000 (22:52 +0000)]
Make work gdk_colormap_sync() work for DirectColor visuals as well. Fill

Thu Jun 13 18:48:14 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkcolor-x11.c: Make work
        gdk_colormap_sync() work for DirectColor visuals
        as well. Fill in the ->colors array in
        gdk_screen_get_system_colormap () for DirectColor visuals.
        (#81954, Based on a patch from shivaram.upadhyayula@wipro.com)

22 years agoFix problem where when no alpha was involved, we scaled rather than
Owen Taylor [Thu, 13 Jun 2002 22:12:53 +0000 (22:12 +0000)]
Fix problem where when no alpha was involved, we scaled rather than

Thu Jun 13 18:11:11 2002  Owen Taylor  <otaylor@redhat.com>

        * pixops/pixops.c: Fix problem where when no alpha was
        involved, we scaled rather than composited, but then
        went ahead and composited anyways. (#76958, Patch
        from Matthias Clasen). Needs to be merged to GNOME
        1.4 gdk-pixbuf

22 years agoFix problem where when no alpha was involved, we scaled rather than
Owen Taylor [Thu, 13 Jun 2002 22:11:53 +0000 (22:11 +0000)]
Fix problem where when no alpha was involved, we scaled rather than

Thu Jun 13 18:11:11 2002  Owen Taylor  <otaylor@redhat.com>

        * pixops/pixops.c: Fix problem where when no alpha was
        involved, we scaled rather than composited, but then
        went ahead and composited anyways. (#76958, Patch
        from Matthias Clasen). Needs to be merged to GNOME
        1.4 gdk-pixbuf.

22 years agoAdd the obsolete CUA cut/copy/paste bindings. (#79078)
Owen Taylor [Thu, 13 Jun 2002 22:06:06 +0000 (22:06 +0000)]
Add the obsolete CUA cut/copy/paste bindings. (#79078)

Thu Jun 13 17:50:36 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextview.c gtk/gtkentry.c: Add the obsolete
        CUA cut/copy/paste bindings. (#79078)

        * gtk/gtktextview.c gtk/gtkentry.c: Make <Shift>BackSpace
        a synonym for for Backspace. (#80302, Jeff Waugh)

22 years agoUse libjpeg in buffered-image mode in order to incrementally display
Matthias Clasen [Thu, 13 Jun 2002 20:22:59 +0000 (20:22 +0000)]
Use libjpeg in buffered-image mode in order to incrementally display

* io-jpeg.c: Use libjpeg in buffered-image mode in order to
incrementally display incrementally loaded progressive jpegs.

22 years agoIgnore all client events that were sent to a window that we don't know
Owen Taylor [Thu, 13 Jun 2002 19:35:08 +0000 (19:35 +0000)]
Ignore all client events that were sent to a window that we don't know

Thu Jun 13 15:02:49 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkdnd-x11.c: Ignore all client events that
        were sent to a window that we don't know about or
        to a foreign window. (#81543, Young-Ho, Cha)

22 years agoFix so that the encoding of the filename is handled properly in the case
Owen Taylor [Thu, 13 Jun 2002 16:32:52 +0000 (16:32 +0000)]
Fix so that the encoding of the filename is handled properly in the case

Thu Jun 13 12:24:09 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c (gtk_file_selection_set_filename):
        Fix so that the encoding of the filename is handled
        properly in the case of non-UTF-8 filesystems;
        document the encoding. (#83386, Sebastian Ritau)

        * gtk/gtkfilesel.c (filenames_drag_get): Remove
        debug printf. Fix UTF-8 / filename encoding
        confusion.

22 years agoFix so that the encoding of the filename is handled properly in the case
Owen Taylor [Thu, 13 Jun 2002 16:32:32 +0000 (16:32 +0000)]
Fix so that the encoding of the filename is handled properly in the case

Thu Jun 13 12:24:09 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c (gtk_file_selection_set_filename):
        Fix so that the encoding of the filename is handled
        properly in the case of non-UTF-8 filesystems;
        document the encoding. (#83386, Sebastian Ritau)

        * gtk/gtkfilesel.c (filenames_drag_get): Remove
        debug printf. Fix UTF-8 / filename encoding
        confusion

22 years agoRemove po/README.tools, po/desk.pl and po/update.pl.
Christian Rose [Thu, 13 Jun 2002 16:30:05 +0000 (16:30 +0000)]
Remove po/README.tools, po/desk.pl and po/update.pl.

2002-06-13  Christian Rose  <menthos@menthos.com>

* Makefile.am (EXTRA_DIST): Remove po/README.tools, po/desk.pl
and po/update.pl.

22 years agoRemoved. These are obsoleted by intltool.
Christian Rose [Thu, 13 Jun 2002 16:15:52 +0000 (16:15 +0000)]
Removed. These are obsoleted by intltool.

2002-06-13  Christian Rose  <menthos@menthos.com>

* desk.pl, update.pl, update.sh, README.tools: Removed. These are
obsoleted by intltool.

22 years agoDon't return a positive status unless there is a text target in the drag.
Owen Taylor [Thu, 13 Jun 2002 16:02:51 +0000 (16:02 +0000)]
Don't return a positive status unless there is a text target in the drag.

Thu Jun 13 12:01:36 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkentry.c (gtk_entry_drag_motion): Don't return
        a positive status unless there is a text target in
        the drag. (#83386, Thomas Leonard.)

22 years agoSave the initial grab time, use that when changing the pointer. (#83052,
Owen Taylor [Thu, 13 Jun 2002 15:56:20 +0000 (15:56 +0000)]
Save the initial grab time, use that when changing the pointer. (#83052,

Thu Jun 13 11:36:37 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
        the initial grab time, use that when changing the
        pointer. (#83052, help from Dave Camp tracking it down.)

22 years agotraverse all nodes, not just the leafs (pointed out by Josh Parsons)
Kristian Rietveld [Thu, 13 Jun 2002 14:32:57 +0000 (14:32 +0000)]
traverse all nodes, not just the leafs (pointed out by Josh Parsons)

Thu Jun 13 16:42:40 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes,
        not just the leafs (pointed out by Josh Parsons)

22 years agocheck that pango has Xft2 support, instead of checking whether Xft2
Havoc Pennington [Wed, 12 Jun 2002 22:58:58 +0000 (22:58 +0000)]
check that pango has Xft2 support, instead of checking whether Xft2

2002-06-12  Havoc Pennington  <hp@redhat.com>

  * configure.in: check that pango has Xft2 support, instead of
  checking whether Xft2 exists.

22 years agoAdd an informative g_warning() when the entry has lost a focus-out-event.
Owen Taylor [Wed, 12 Jun 2002 21:47:29 +0000 (21:47 +0000)]
Add an informative g_warning() when the entry has lost a focus-out-event.

Wed Jun 12 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkentry.c (blink_cb): Add an informative
        g_warning() when the entry has lost a focus-out-event.
        (#78305, Michel Selten)

22 years agoCheck to see if the menu item is selectable before setting
Owen Taylor [Wed, 12 Jun 2002 21:32:25 +0000 (21:32 +0000)]
Check to see if the menu item is selectable before setting

Wed Jun 12 17:31:15 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
        Check to see if the menu item is selectable before
        setting menu_shell->active_menu_item. This hopefully
        will keep gail from getting confused.
        (#84115, Remus Draica)

22 years agoFix bug where if CENTER_ON_PARENT was set, but there was no parent,
Owen Taylor [Wed, 12 Jun 2002 21:19:05 +0000 (21:19 +0000)]
Fix bug where if CENTER_ON_PARENT was set, but there was no parent,

Wed Jun 12 17:13:13 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwindow.c (gtk_window_move_resize): Fix bug
        where if CENTER_ON_PARENT was set, but there was
        no parent, GDK_HINT_POS would be set, resulting
        in a dialog at 0,0. (#83479, Havoc Pennington)

22 years agoed Jun 12 16:34:13 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Wed, 12 Jun 2002 20:42:44 +0000 (20:42 +0000)]
ed Jun 12 16:34:13 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkmenubar.c: When fetching the menubars for
        the window for F10 handling, only add viewable menu
        bars. (Apparently, people sometimes put menu bars
        in notebook pages!) (Tim Janik, #82627)

22 years agoClamp size of child to at least 1x1. (#82431, Boris Shingarov.)
Owen Taylor [Wed, 12 Jun 2002 20:23:30 +0000 (20:23 +0000)]
Clamp size of child to at least 1x1. (#82431, Boris Shingarov.)

Wed Jun 12 16:21:38 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
        Clamp size of child to at least 1x1. (#82431,
        Boris Shingarov.)

22 years agoHandle 0 increment, to fix division-by-zero problem. (#82816, George
Owen Taylor [Wed, 12 Jun 2002 19:42:48 +0000 (19:42 +0000)]
Handle 0 increment, to fix division-by-zero problem. (#82816, George

Wed Jun 12 15:43:38 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkspinbutton.c (gtk_spin_button_snap): Handle
        0 increment, to fix division-by-zero problem.
        (#82816, George Lebl.)

22 years agoFix memory leak. (Patch from Matthias Clasen, #84926)
Owen Taylor [Wed, 12 Jun 2002 19:37:43 +0000 (19:37 +0000)]
Fix memory leak. (Patch from Matthias Clasen, #84926)

Wed Jun 12 15:38:01 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
        Fix memory leak. (Patch from Matthias Clasen, #84926)

        * gtk/gtkrange.c (gtk_range_init): Initialize
        mouse_x, mouse_y to -1,-1. (#84871, Garrett Lesage)

22 years agoAllow NULL for widget path or class path as documented. (#83150, Sergey
Owen Taylor [Wed, 12 Jun 2002 19:08:32 +0000 (19:08 +0000)]
Allow NULL for widget path or class path as documented. (#83150, Sergey

Wed Jun 12 15:08:37 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkrc.c (gtk_rc_get_style_by_paths): Allow
        NULL for widget path or class path as documented.
        (#83150, Sergey Kuzminov

22 years agoFix ZWJ => ZWN typo. (#83092, Tino Meinen)
Owen Taylor [Wed, 12 Jun 2002 19:01:58 +0000 (19:01 +0000)]
Fix ZWJ => ZWN typo. (#83092, Tino Meinen)

Wed Jun 12 15:02:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextutil.c: Fix ZWJ => ZWN typo.
        (#83092, Tino Meinen)

22 years agoFix some problems with case statements for checking for omitted deps.
Owen Taylor [Wed, 12 Jun 2002 18:48:10 +0000 (18:48 +0000)]
Fix some problems with case statements for checking for omitted deps.

Wed Jun 12 14:41:43 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Fix some problems with case statements
        for checking for omitted deps. (#84202, Jacob Berkman.)

        * configure.in: Remove USE_X11R6_XIM checks since we
        no longer use them.

22 years agoAdd compose sequences of dead_acute + c/C => C WITH CEDDILLA. (Nano
Owen Taylor [Wed, 12 Jun 2002 18:25:06 +0000 (18:25 +0000)]
Add compose sequences of dead_acute + c/C => C WITH CEDDILLA. (Nano

Wed Jun 12 14:18:45 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkimcontextsimple.c: Add compose sequences
        of dead_acute + c/C => C WITH CEDDILLA.
        (Nano Golveia, #83492)

22 years agoadded gdkdisplay and gdkscreen
Hans Breuer [Mon, 10 Jun 2002 21:58:00 +0000 (21:58 +0000)]
added gdkdisplay and gdkscreen

2002-06-10  Hans Breuer  <hans@breuer.org>

* gdk/makefile.msc : added gdkdisplay and gdkscreen

* gdk/win32/gdkdisplay-win32.c (gdk_open_display) :
need to gdk_screen_set_default_colormap(). Also un-static
some exported gdk_display_*() functions

* gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"

* gdk/win32/gdkscreen-win32.c : implement
gdk_screen_get_number, fixed typo, added rewuired headers

[merge from 2.0.x branch, should we really manifest
 GtkPlug as being an X11 only thing this way? See #58541]
* gtk/gtkwindow.c (gtk_window_show): Conditionalize
GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
reported by Sven Neumann)

22 years ago[ merge from stable ]
Tor Lillqvist [Mon, 10 Jun 2002 20:27:15 +0000 (20:27 +0000)]
[ merge from stable ]

2002-06-10  Tor Lillqvist  <tml@iki.fi>

[ merge from stable ]

* gdk/win32/gdkmain-win32.c (gdk_screen_get_width_mm,
gdk_screen_get_height_mm): Use the "logical dpi" to calculate
(pseudo) physical sizes. Similar to the use of "logical dpi" in
Pango as suggested by Joaquin Cuenca Abela.

Two fixes by Florent Duguet:

* gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Correct
semantics for setting cursor to NULL (should use cursor of parent
window).

* gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Plug memory
leak.

22 years agoNew functions to fetch 32 or 16-bit little-endian values starting at a
Federico Mena Quintero [Mon, 10 Jun 2002 16:50:10 +0000 (16:50 +0000)]
New functions to fetch 32 or 16-bit little-endian values starting at a

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

* io-bmp.c (lsb_32):
(lsb_16): New functions to fetch 32 or 16-bit little-endian values
starting at a specific memory location.  We do this instead of
GINT32_FROM_LE() as the latter is simply dereferences a cast,
which doesn't work on platforms with alignment requirements.
Fixes #84083.

22 years agoAdded hi in ALL_LINGUAS Added new hindi translation.
Naba Kumar [Mon, 10 Jun 2002 10:26:47 +0000 (10:26 +0000)]
Added hi in ALL_LINGUAS Added new hindi translation.

* configure.in: Added hi in ALL_LINGUAS
* po/hi.po: Added new hindi translation.

22 years agoDon't leak child_anchor_table. (#84425)
Matthias Clasen [Sun, 9 Jun 2002 20:43:45 +0000 (20:43 +0000)]
Don't leak child_anchor_table. (#84425)

* gtk/gtktextbtree.c (_gtk_text_btree_unref): Don't leak
child_anchor_table.  (#84425)

* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't leak
one_display_cache.  (#84424)

22 years agoFix sizing bug.
Jonathan Blandford [Sat, 8 Jun 2002 06:48:27 +0000 (06:48 +0000)]
Fix sizing bug.

Fri Jun  7 23:11:42 2002  Jonathan Blandford  <jrb@gnome.org>

* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): Fix sizing
bug.

* docs/reference/gtk/tmpl/gtkbutton.sgml: Remove ^M's.

Not sure why all the docs updated.

22 years agoNew function, split off from gtk_tree_view_column_clear_attributes.
Matthias Clasen [Fri, 7 Jun 2002 22:02:23 +0000 (22:02 +0000)]
New function, split off from gtk_tree_view_column_clear_attributes.

* gtk/gtktreeviewcolumn.c
(gtk_tree_view_column_clear_attributes_by_info): New function,
split off from gtk_tree_view_column_clear_attributes.
(gtk_tree_view_column_clear_attributes):
(gtk_tree_view_column_finalize):  Call the new function, avoid
recalculating the info from the renderer.  (#84413)

* gtk/gtktextview.c (text_view_child_new_anchored): Initialize
vc->type in order to avoid a later UMR.  (#84415)

22 years agouse the RootWindow of this screen for gdk_window_get_pointer.
Mark McLoughlin [Fri, 7 Jun 2002 02:05:01 +0000 (02:05 +0000)]
use the RootWindow of this screen for gdk_window_get_pointer.

2002-06-07  Mark McLoughlin  <mark@skynet.ie>

        * gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
        the RootWindow of this screen for gdk_window_get_pointer.

22 years agoSet hardware_keycode for KeyRelease events. (#84305)
Matthias Clasen [Thu, 6 Jun 2002 21:02:46 +0000 (21:02 +0000)]
Set hardware_keycode for KeyRelease events. (#84305)

* gdk/x11/gdkevents-x11.c (gdk_event_translate): Set
hardware_keycode for KeyRelease events.  (#84305)

22 years agoDon't redraw when the area is completely above the visible area.
Owen Taylor [Thu, 6 Jun 2002 15:41:57 +0000 (15:41 +0000)]
Don't redraw when the area is completely above the visible area.

Thu May 23 15:44:30 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextview.c (changed_handler): Don't redraw
        when the area is completely above the visible area.

22 years agoAdd a "is_focus" property indicating whether a widget is the focus widget
Owen Taylor [Thu, 6 Jun 2002 15:38:39 +0000 (15:38 +0000)]
Add a "is_focus" property indicating whether a widget is the focus widget

Fri May 17 17:27:21 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwindow.c gtk/gtkwidget.c: Add a "is_focus"
        property indicating whether a widget is the focus
        widget within the toplevel.

        * gtk/gtkwindow.[ch]: Add "is_active" "has_toplevel_focus"
        properties to indicate (separately) the idea of
        being the part of the toplevel with the input focus
        and being the active widget. (Needed for full XEMBED
        compliance.)

        * gtk/gtkplug.c gtk/gtksocket.c: Update to work
        in terms of is_active/has_toplevel_focus, and thus
        handle the active/focused XEMBED distinction
        correctly.

        * gtk/gtkplug.c (gtk_plug_realize): Remove
        FOCUS_CHANGE_MASK, since we don't need it.

Fri May 17 18:07:34 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtksocket.c (gtk_socket_add_window): Send
        XEMBED_EMBEDDED_NOTIFY.

        * gtk/gtksocket.c: Assume windows without _XEMBED_INFO
        property want to be mapped, for better
        current-Qt compatibility.

22 years agodon't leak the GArray (figured out by Matthias Clasen, fixes #82026).
Kristian Rietveld [Thu, 6 Jun 2002 15:18:52 +0000 (15:18 +0000)]
don't leak the GArray (figured out by Matthias Clasen, fixes #82026).

Thu Jun  6 17:27:01 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtkrbtree.c (_gtk_rbtree_reorder): don't leak the GArray
        (figured out by Matthias Clasen, fixes #82026).

22 years agoChanges multihead reorganizing code for win32 support, mostly from a patch
Owen Taylor [Thu, 6 Jun 2002 00:26:42 +0000 (00:26 +0000)]
Changes multihead reorganizing code for win32 support, mostly from a patch

Wed Jun  5 18:34:47 2002  Owen Taylor  <otaylor@redhat.com>

Changes multihead reorganizing code for win32 support,
mostly from a patch by Hans Breuer.

* gdk/gdkcolor.c gdk/x11/gdkcolor-x11.c gdk/gdkcursor.c
  gdk/x11/gdkcursor-x11.c gdk/gdkevents.c gdk/x11/gdkevents-x11.c
  gdk/gdkfont.c gdk/x11/gdkfont-x11.c gdk/gdkkeys.c
  gdk/x11/gdkkeys-x11.c gdk/gdkimage.c gdk/x11/gdkimage-x11.c
  gdk/gdkscreen.c gdk/x11/gdkmain-x11.c
  gdk/gdkdisplay.c gdk/gdkevents-x11.c gdk/gdkpango.c
  gdk/x11/gdkpango-x11.c gdk/gdkselection.c
  gdk/x11/gdkselection-x11.c gdk/gdkwindow.c
  gdk/x11/gdkwindow-x11.c gdk/gdkvisual.c gdk/x11/gdkvisual-x11.c:
  Move port-independent singlehead wrapper functions into
  port-independent part of GDK. (#80009)

* gdk/win32/gdkcolor-win32.c gdk/win32/gdkcursor-win32.c
  gdk/win32/gdkevents-win32.c gdk/win32/gdkfont-win32.c
  gdk/win32/gdkimage-win32.c gdk/win32/gdkkeys-win32.c
  gdk/win32/gdkmain-win32.c gdk/win32/gdkproperty-win32.c
  gdk/win32/gdkselection-win32.c gdk/win32/gkwindow-win32.c:
Turn singlehead functions into "multihead" functions that ignore
their GdkDisplay or GdkScreen arguments.

* gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
gdk/win32/gdkinput-win32.c gdk/win32/gdkprivate-win32.h:
Misc multihead-compatibility changes.

* gtk/gtk.def gdk/gdk.def: Update for multihead functions.

* gdk/gdkcolormap.h gdk/gdkvisual.h gdk/x11/gdkcolormap-x11.c
gdk/x11/gdkvisual-x11.c: Remove the screen fields
from the public parts of the colormap/visual structures, add accessors
instead.

* gdk/gdkpixbuf-render.c gdk/gdkpixmap.c gdk/gdkrgb.c
  gdk/x11/gdkcolormap-x11.c gdk/x11/gdkimage-x11.c
  gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.h gtk/gtkgc.c
  gtk/gtkstyle.c gtk/gtkwidget.c: Use accessors to get the screen
for colormaps, visuals; move the fields into the private
structures for the x11 backend.

* gdk/gdkdisplay.[ch] gdk/x11/gdkdisplay-x11.[ch]
  gdk/gdkscreen.[ch] gdk/x11/gdkscreen-x11.c:
Remove virtualization of screen and display functions.
(#79990, patch from Erwann Chenede)

* gdk/win32/gdkdisplay-x11.c gdk/win32/gdkscreen-win32.c
gdk/win32/{Makefile.am, makefile.msc, makefile.mingw}:
New files containing stub implementations of Display,
Screen functions.

* gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
gdk/x11/gdkx.h: Clean up function exports and what
headers they are in. (#79954)

* gdk/x11/gdkx.h: Fix macro that was referring to a non-existant
screen->screen_num. (In the patch for #79972, Erwann Chenede)

* gdk/gdkscreen.c gdk/gdkwindow.c gdk/x11/gdkinternals.h
 gdk/x11/gdkscreen-x11.c: Fix gdk_screen_get_window_at_pointer()
to use window hooks. (#79972, patch partly from Erwann Chenede)

* gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c: Fix
some warnings.

22 years agoRelated bugs: #76252, #76396, #80866.
Kristian Rietveld [Wed, 5 Jun 2002 21:25:52 +0000 (21:25 +0000)]
Related bugs: #76252, #76396, #80866.

Wed Jun  5 23:29:41 2002  Kristian Rietveld  <kris@gtk.org>

        Related bugs: #76252, #76396, #80866.

        * gtk/gtktreeselection.[ch]: added
        gtk_tree_selection_get_selected_rows(),
        added gtk_tree_selection_count_selected_rows(),
        renamed gtk_tree_selection_real_select_range() to
        gtk_tree_selection_real_modify_range(), and added mode parameter,
        added gtk_tree_selection_unselect_range().

22 years agoIf we have xft .pc file, use that when checking for Xft/Xrender. (Still
Owen Taylor [Tue, 4 Jun 2002 21:55:29 +0000 (21:55 +0000)]
If we have xft .pc file, use that when checking for Xft/Xrender. (Still

Tue Jun  4 17:39:34 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: If we have xft .pc file, use that
        when checking for Xft/Xrender. (Still need to separate
        out HAVE_XFT, HAVE_RENDER)

        * configure.in: Make sure Xft cflags come before X cflags.

22 years agoadded gtk_tree_view_expand_to_path.
Kristian Rietveld [Tue, 4 Jun 2002 19:05:33 +0000 (19:05 +0000)]
added gtk_tree_view_expand_to_path.

Tue Jun  4 21:13:57 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.[ch]: added gtk_tree_view_expand_to_path.

22 years agoDiscussed in #76249.
Kristian Rietveld [Tue, 4 Jun 2002 17:17:49 +0000 (17:17 +0000)]
Discussed in #76249.

Tue Jun  4 19:24:41 2002  Kristian Rietveld  <kris@gtk.org>

        Discussed in #76249.

        * gtk/gtkliststore.[ch]: made gtk_list_store_remove return a gboolean,
        added gtk_list_store_iter_is_valid.

        * gtk/gtktreestore.[ch]: made gtk_tree_store_remove return a gboolean,
        added gtk_tree_store_iter_is_valid.

        * gtk/gtktreemodelsort.[ch]: added VALID_ITER macro as in liststore
        and treestore sources, added gtk_tree_model_sort_iter_is_valid.