summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
Commit message (Collapse)AuthorAgeFilesLines
* Queue a clear/redraw, not just a redraw, so the focus gets undrawnthemes-2Owen Taylor1998-11-061-226/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Nov 5 12:06:16 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkcheckbutton.c (gtk_check_button_draw_focus): Queue a clear/redraw, not just a redraw, so the focus gets undrawn properly. * gtk/gtktogglebutton.c (gtk_toggle_button_unrealize): Chain to gtk_widget_unrealize() instead of duplicating code. Wed Nov 4 14:34:51 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.c gdk/gdkprivate.h gdk/gdkwindow.c: Removed last vestiges of old DND. Tue Nov 3 12:27:52 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c: Restored inner border to entries, erase cursors to background image. Fri Oct 30 12:09:21 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c gtk/gtkstyle.[ch]: removed paint_entry() - it was identical to paint_flat_box(). * gtk/gtkstyle.c: Coding style fixups. * gtk/gtkwindow.c (gtk_window_move_resize): removed useless test. * gtk/gtkframe.c gtkstyle.[ch] gtknotebook.c: Change 'side' for paint_[box/shadow]_gap and paint_extension to be GtkPositionType instead of a random int. * gtk/gtkaspectframe.c (gtk_aspect_frame_paint): Use "frame" as detail - an aspectframe should draw identical to a frame. Tue Oct 27 09:58:11 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.c (gdk_window_merge_child_shapes): renamed from combine_child_shapes(). * gdk/gdkwindow.c: Merge propagate_shapes() and propagate_combine_shapes() to remove code duplication.
* Merges from head.Owen Taylor1998-10-191-188/+70
| | | | | | | | | | Sun Oct 18 22:48:27 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkdrawwindow.c (gtk_draw_window_get_type): Added the "GtkDrawWindow" class, which is a descendent of the Window class which leaves its background alone. Essentially, a toplevel drawing area, though it does allow adding a child.
* Merges from HEAD.Owen Taylor1998-09-041-1/+0
| | | | | | | | | | | | Thu Sep 3 19:45:34 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkthemes.c: Use g_module instead of dlopen() Thu Sep 3 19:30:11 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_expose): Check if we've changed widgets since the expose event was queued.
* Lot's of merges from main branch.Owen Taylor1998-08-251-0/+12
| | | | | | | Mon Aug 24 23:37:26 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtktext.c: Fixed some remaining background drawing, merges from main branch, cleanups.
* Fit scales into the theme-drawing framework. We do this by making them,Owen Taylor1998-08-211-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Aug 21 19:02:30 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.[ch] gtk/gtkhscale.c gtk/gtkvscale.[ch]: Fit scales into the theme-drawing framework. We do this by making them, like check/radio-buttons, no-window widgets with subwindows. We then move the value by calling gtk_widget_queue_clear() and only redraw the value in our draw() / expose() handler. A virtual function clear_background is added which queues a clear on the "background" portion of the widget. Fri Aug 21 13:04:27 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtktext.c (mark_bg_gc): Make background colors work again. (We can't always paint the background with a paint() function - only do that for selected text) Mon Aug 17 20:31:01 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtktearoffmenuitem.c gtk/gtkclist.[ch] gtk/gtkctree.[ch] gtk/gtklabel.c gtk/gtkmenu.c: Merges from main branch. * Makefile.am (SRC_SUBDIRS): Removed themes from SRC_SUBDIRS. the themes can't be built as part of the same build since they depend on gdk_imlib. Fri Aug 14 12:44:30 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkthemes.c (gtk_theme_engine_get): Removed sample engine code from gtkthemes.c. * configure.in ltconfig.in ltmain.sh gdk/Makefile.am gtk/Makefile.am gtk/ - Upgrade to libtool-1.2b + patch to add shared library dependencies for Linux. (Needs to be extended to other platforms where they are safe) - Check for -ldl so this branch should build on all platforms, though themes will work on all platforms they could work on. - Use -version and -release simultaneously: sonames stay as they are in the current scheme, but -lgtk-1.1 changes to -lgtk. - Added in extra -l flags to library LDFLAGS so we get shared library dependencies against X libs and -ldl. (But not libgtk against libgdk or libglib yet, since dependencies against uninstalled libraries aren't portable) Fri Aug 21 19:08:25 1998 Owen Taylor <otaylor@redhat.com> * Makefile.am: Added support for metal theme. Install/distribute gtkrc's for each theme. Mon Aug 17 20:32:53 1998 Owen Taylor <otaylor@redhat.com> * Makefile.am, pixmap/Makefile.am: Switch back to using automake, fix things up to make dist properly. * pixmap_theme.h: Rationalized. * win95_theme.h motif_theme.h: Removed * Started ChangeLog.
* Fixed up handling of partially clipped areas.Owen Taylor1998-08-041-0/+2
| | | | | | | | | Tue Aug 4 19:12:14 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_idle_draw): Fixed up handling of partially clipped areas. Merges from main branch.
* Added missed case into draw code. (Thanks Tim!)Owen Taylor1998-07-311-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jul 31 13:23:50 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Added missed case into draw code. (Thanks Tim!) * gtk/gtkrc.c gtk/gtkstyle.c: When unrealizing/destroying call engine-specific code first. Misc cleanups. * themes/Makefile.in themes/configure.in: Fixups with GTK_CFLAGS. Thu Jul 30 18:09:21 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c gtk/gtkstyle.c: More mm fixups * gtk/gtktooltips.c: Pass a widget (the window) to the drawing function instead of the GtkTooltips. Thu Jul 30 17:27:10 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.c: Abstract out checking for shape extension into a function. * gtk/gtkwindow.c: Fix up gtk_window_expose()/draw(). Remove extra callls to gtk_window_draw().
* Abstract out checking for shape extension into a function.Owen Taylor1998-07-301-57/+41
| | | | | | | | | | | | Thu Jul 30 17:27:10 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.c: Abstract out checking for shape extension into a function. * gtk/gtkwindow.c: Fix up gtk_window_expose()/draw(). Remove extra callls to gtk_window_draw(). Miscellaneous indentation fixes.
* GTK theme revision 2 now in CVS themes 2 branch........ WHEEEEEEEEEEE!Carsten Haitzler1998-07-281-0/+510
| | | | GTK theme revision 2 now in CVS themes 2 branch........ WHEEEEEEEEEEE!
* Make gdk_window_foreign_new fail gracefullyElliot Lee1998-07-161-3/+7
|
* check if old_parent_private is not NULL before trying to g_list_remove theGeorge Lebl1998-07-131-1/+2
| | | | | | | | | | Mon Jul 13 12:42:51 1998 George Lebl <jirka@5z.com> * gdk/gdkwindow.h: (gdk_window_reparent) check if old_parent_private is not NULL before trying to g_list_remove the child. A patch from Michael Lausch. this finally fixes the swallows for the panel :)
* changed reversed_[12] to reserved_[12] in gtk_*_get_type functions.Tim Janik1998-07-041-5/+11
| | | | | | | | | | | Sat Jul 4 13:16:24 1998 Tim Janik <timj@gtk.org> * gtk/*.c: changed reversed_[12] to reserved_[12] in gtk_*_get_type functions. * gdk/gdkwindow.c: * gdk/gdkvisual.c: check for some pointer values to be != NULL, prior to XFree() calls.
* do not avoid to queue for a resize if the container is not visible, weTim Janik1998-06-241-11/+17
| | | | | | | | | | | | | | | | | | | | Wed Jun 24 16:38:02 1998 Tim Janik <timj@gtk.org> * gtk/gtkbin.c (gtk_bin_remove): do not avoid to queue for a resize if the container is not visible, we might be a toplevel! this holds for all other base container implementations as well, that are candidates to derive toplevels from. in general the resizing code will care about visibility itself. * gtk/gtkmenushell.c (gtk_menu_shell_remove): likewise. * gtk/gtkbox.c (gtk_box_remove): likewise. * gtk/gtkwindow.c (gtk_window_move_resize): save ->use_uposition around gtk_window_set_hints(), since we haven't calculated the new position yet. * gdk/gdkwindow.c (gdk_window_get_pointer): take care that *x, *y and *mask are alway initialized in a sane way, regardless of the return value.
* new function gdk_window_at_pointer() to retrive the current GdkWindow theTim Janik1998-06-171-38/+97
| | | | | | | | | | | | | | | | | | Wed Jun 17 03:47:40 1998 Tim Janik <timj@gtk.org> * gdk/gdk.h: * gdk/gdkwindow.c: new function gdk_window_at_pointer() to retrive the current GdkWindow the pointer is on if there is any. * gtk/gtktable.c (gtk_table_init): preallocate a table with one row and one column, so we don't construction logic at all. changed a few (x < y - 1) to (x + 1 < y), to avoid failing evaluations due to unsigned int wraps. * gtk/gtkwidget.c (gtk_widget_set_parent): removed left over code portion, added an additional check for parent != widget. * more GtkType and macro fixups.
* Removed code for drawing the child in two places at once. Unfortunately,Owen Taylor1998-06-131-0/+6
| | | | | | | | | | | | | Fri Jun 12 21:20:42 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkoptionmenu.c (gtk_option_menu_expose): Removed code for drawing the child in two places at once. Unfortunately, not only does it not work anymore (because reparenting has been fixed), but it also triggers reparent/expose loops in some cases. * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Removed an unecessary unrealize.
* Add GDK_SUBSTRUCTURE_NOTIFY_MASKElliot Lee1998-05-191-3/+4
| | | | | | Add GDK_SUBSTRUCTURE_NOTIFY_MASK Fixed GDK_DESTROY handling WRT GnomeRootwin widget.
* Merges from the gtk-1-0 branchOwen Taylor1998-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org> * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about "glibconfig.h" and another about writing another IRC client. Sat May 2 00:14:05 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the parameters to log are doubles. Digital Unix apparently is missing the argument in its prototype. Sun May 3 19:04:46 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtklabel.c (gtk_label_state_changed): Don't force a clear until the widget is actually on screen. Hopefully nothing else though CVS think there are a whole bunch more changed files.
* configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both onOwen Taylor1998-05-031-31/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun May 3 13:38:22 1998 Owen Taylor <otaylor@gtk.org> * configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both on the client and server side. (And, more importantly, check for the shape extension so we may include -lXext even when compiling with --disable-xshm) Don't set override_redirect on all shaped windows. It isn't necessary. * gdk/gdkwindow.c: Set ->colormap to NULL for root and foreign windows. Use this to check if we need to get the colormap from X. Fri May 1 22:32:47 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkbutton.c (gtk_button_paint): Draw the areas between the default and the button always in GTK_STATE_NORMAL. * gtk/gtkrange.c (gtk_range_style_set): Added a style_set callback. Fri May 1 16:40:57 1998 Owen Taylor <otaylor@gtk.org> * gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpmp[_d]): Fix a buffer overflow on pixmaps that claim to have more than 31 characters per pixel. (gdk_pixmap_read_string): Don't wrap around strings longer than half of address space ;-) * gtk/gtk[vh]ruler.c gtk/gtkinputdialog.c: Expand some buffers that were used for printing integers. * */* (almost): Style: All int foo () { ... } changed to int foo (void) { ... } ^^^^^^^ This is why some many files changed Even where there were proper prototypes elsewhere. * gdk/gxid.c (handle_claim_device): Some extra checks. It isn't safe against being fed bad X id's, but at least it should be safe against deleting all your files.
* <raster@redhat.com>rhlabs1998-05-011-2/+4
| | | | | | | | | | <raster@redhat.com> AHA! more bugs in the get_visual and get_colormap stuff.. guarateed to barf if the gdk window you are querying is gdk's own gdk_root_window :) Added checks to see if this window is infact the root window.... :) now ee doesnt barf if you set the image as the bg.. :)
* New function to reset the RC styles for a heirarchyOwen Taylor1998-05-011-1/+18
| | | | | | | | | | | | | | | | | | Fri May 1 12:06:43 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkwindow.[ch] (gtk_widget_reset_rc_styles): New function to reset the RC styles for a heirarchy Clear the window background if necessary in gtk_window_style_set. * gtk/gtkrc.[ch]: New function gtk_rc_reparse_all() which rereads all previously read RC files. * gdk/gdkwindow.c gdk/gdk.h: New function gdk_window_get_toplevels(). (Should it just be called gdk_get_toplevels?) * gtk/testgtk.c: New test to reload RC files.
* Fix up getting colormap for FOREIGN windows to go along with Raster's fixOwen Taylor1998-05-011-4/+16
| | | | | | | | Fri May 1 00:42:25 1998 Owen Taylor <otaylor@gtk.org> * gdk/gdkwindow.c (gdk_window_get_colormap): Fix up getting colormap for FOREIGN windows to go along with Raster's fix for visuals.
* Merged changes from gtk-1-0. Check ChangeLog for details.Owen Taylor1998-05-011-25/+54
|
* Fix the problem introduced by whoever thought that randomly changing intsMiguel de Icaza1998-04-151-4/+4
| | | | | | | | | | 1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx> * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced by whoever thought that randomly changing ints to unsigned int without reviewing the code was a good idea. It is, btw not mentioned in the ChangeLog as usual, but I know it was not Elliot the culprit this time.
* Changed LGPL address for FSF in all .h and .c filesPDT 1998 Shawn T. Amundson1998-04-131-2/+3
| | | | | | Sun Apr 12 18:54:29 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Changed LGPL address for FSF in all .h and .c files
* Picky --enable-ansi cleanups.Owen Taylor1998-04-101-2/+4
| | | | | | | | | | | | | | | | | | Thu Apr 9 18:36:31 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkmisc.c gdk/gdkwindow gtk/gtkentry.c gtk/testgtk.c: Picky --enable-ansi cleanups. * gtk/gtkstatusbar.c (gtk_statusbar_pop): Pop top message off _belonging_to_this_context_. (gtk-d4bjorn-980409-0) From "Damon Chaplin" <DAChaplin@email.msn.com> * gtk/gtktable.c (gtk_table_size_request_pass3): Small fix to size requisition code. * gtk/gtknotebook.c: Make sure not to do things to page->tab_label if it doesn't exist.
* Removed, because that's what a NULL comparison function means. And itOwen Taylor1998-04-071-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Apr 7 19:36:48 1998 Owen Taylor <owt1@cornell.edu> * gutils.c (g_direct_compare): Removed, because that's what a NULL comparison function means. And it wasn't 64 bit safe. Tue Apr 7 19:14:03 1998 Owen Taylor <owt1@cornell.edu> * gdk/gdkpixmap.c: Added maximum field widths to prevent possible '%s' scanf overflows. Replaced scanf("%c") with getc(), Don't interpret /*/ as a full comment. Use g_realloc/g_new. * gtk/gtkwidget.h gtk/gtkprivate.h: Changed all flag tests to check for ((GTK_WIDGET_FLAGS(widget) & FLAG) != 0) instead of (GTK_WIDGET_FLAGS(widget) & FLAG) * gtk/gtkfilesel.c: Use getwd() instead of getcwd() on SunOS, because getcwd() hangs up in a wait4(). (Found by David Monniaux <monniaux@clipper.ens.fr>) - Check device/inode/mtime not just inode/mtime, when caching scanned directories. (From: scottk@ig.utexas.edu (Scott Kempf)) * gdk/gdkpixmap.c: Check for 0 width/height when creating pixmaps. * gtk/*.c: Global substitution of recently introduced "MAX (0," for allocations to "MAX (1,", since creating a backing pixmap with a zero width or height fails. * gdk/gdkwindow.c (gdk_window_new): Don't set all the WM properties for child windows. Don't set the base size, since the value we set will be taken as a minimum size.
* changed some debugging messages to be prefixed by "Gdk:".Tim Janik1998-03-171-1/+0
| | | | | | | | | | | | | | | | | | | Tue Mar 17 16:19:47 1998 Tim Janik <timj@gimp.org> * gdk/gdk.c: * gdk/gdkvisual.c: changed some debugging messages to be prefixed by "Gdk:". * gtk/gtkwidget.c (gtk_widget_real_draw): applied gtk-shige-980317-0.patch.gz to set all event fields, but modified the event.send_event field to be set to TRUE, since the event is not really comming from the server. * gtk/gtkwindow.c (gtk_window_init): applied gtk-ograf-980317-1.patch.gz which cares about an initial setting of program name and program class. * gdk/gdk.c (gdk_init): applied gtk-ograf-980317-0.patch.gz, which strips leading pathnames from gdk_progname.
* Use StructureNotifyMaskMask as the mask, as this enables an applicationMiguel de Icaza1998-03-171-1/+2
| | | | | | | | | | | | Tue Mar 17 02:02:02 1998 Miguel de Icaza <miguel@nuclecu.unam.mx> * gdk/gdk.c (gdk_dnd_drag_leave): Use StructureNotifyMaskMask as the mask, as this enables an application listening to those events to catch the root events. Thanks to Maciej for pointing us in the right direction. (gdk_dnd_drag_enter): Likewise. (gdk_dnd_drag_leave): Likewise. * gdk/gdkwindow.c (gdk_window_dnd_data_set): Likewise.
* Use signed integers so that testing will not fail for windows that areFederico Mena1998-03-171-32/+40
| | | | | | | | | Mon Mar 16 22:31:02 1998 Federico Mena <federico@nuclecu.unam.mx> * gdk/gdkwindow.c (gdk_window_xid_at): Use signed integers so that testing will not fail for windows that are off-screen. (gdk_window_xid_at_coords): Only considers visible windows.
* fixed a bug with invoking the quit handlers that could cause them to beTim Janik1998-03-141-1/+1
| | | | | | | Sat Mar 14 10:10:46 1998 Tim Janik <timj@gimp.org> * gtk/gtkmain.c (gtk_main): fixed a bug with invoking the quit handlers that could cause them to be removed wihout being invoked.
* Makefile.am fixes minor fix to gdkwindow.c -owtGTK_0_99_6Owen Taylor1998-03-141-1/+1
| | | | | | Makefile.am fixes minor fix to gdkwindow.c -owt
* Don't resize windows when request is rejected by WM. Only use the resizeOwen Taylor1998-03-141-23/+89
| | | | | | | | | | | | | | | | | | | Sat Mar 14 00:03:34 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkwindow.c: Don't resize windows when request is rejected by WM. Only use the resize count to guess whether a Configure event was a rejection by the WM, or a move. * gdk/gdk.c gdk/gdktypes.h: - Don't XDestroyWindow foreign windows (If they're a child of one of our windows, reparent them to root and send them a WM delete event, otherwise, just delete the GTK structure.) Handle notification of their deletion properly. (Made foreign windows a seperate window type to do this) * gtk/gtkobject.c (gtk_object_set_data_full): Call the DestroyNotify when replacing the object data.
* Bug fixes/improvements to the motion event eating for DndElliot Lee1998-03-111-0/+3
|
* <raster@redhat.com>rhlabs1998-03-111-28/+21
| | | | | | | <raster@redhat.com> added bolleean to gdk_window_xid_at_coords for excluding children fo excluded windows
* <raster@redhat.com>rhlabs1998-03-111-4/+23
| | | | | | | <raster@redhat.com> final fixes to STUPId comparison of types of loop end - i missed the unsigned bit! i will NEVEr use unsigned ints ever again!
* <raster@redhat.com>rhlabs1998-03-101-1/+6
| | | | | | <raster@redhat.com> fixed minor buglets in window tree walker.
* Miguel, try this - I think it should do what you need. Hurry hurry :)Elliot Lee1998-03-101-2/+2
|
* - Show selection correctly when starting selection with arrowsOwen Taylor1998-03-081-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Mar 8 15:53:33 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtktext.c: - Show selection correctly when starting selection with arrows - Display pixmap background only when not editable - Redraw focus area more carefully to prevent flashing (and make style of drawing consistent with Entry) * gtk/gtktreeitem.c: ref colormaps for pixmap by colormap storage. * gtk/gtkrc.c: Store a separate style for each RcStyle for each colormap, so we can handle background pixmaps correctly, which need to be per-colormap. (Leaks colormaps...) Parse text color style entries correctly. * gtk/testgtk.c: insert text without fg color gtk/testgtkrc: move "*" after rest, so the other class styles take effect * gdk/gdkwindow.c gdk/gdk.c gdk/gdkprivate.h: Send DND events safely, in case drop window disappears. (Performance hit because XSync()'s are necessary) * gdk/gdk.h gdk/gdkpixmap.c: Added gdk_pixmap_colormap_create_from_xpm[_d] to allow creating pixmaps from xpm's before you have a GdkWindow.
* applied a bunch of patches and removed all the printfs thatTim Janik1998-03-081-67/+60
| | | | | raster left over. -timj
* <raster@redhat.com>rhlabs1998-03-071-1/+98
| | | | | | | | | | <raster@redhat.com> added: Window gdk_window_xid_at(Window base, gint bx, gint by, gint x, gint y) for helpful DND support...
* [Ummm, maybe we should do the same change to the selection_owner variable?]Federico Mena Quintero1998-03-061-4/+4
| | | | | | | | | | | 1998-03-05 Federico Mena Quintero <federico@nuclecu.unam.mx> * gdk/gdkprivate.h: Changed the name of default_filters to gdk_default_filters to avoid namespace pollution. Yes, it just happened to me. * gdk/gdk.c (gdk_event_translate): * gdk/gdkglobals.c: * gdk/gdkwindow.c (gdk_window_add_filter gdk_window_remove_filter): Likewise.
* Add drag_end_event for future expansion, plus allow passing in NULL to the ↵Elliot Lee1998-03-011-9/+20
| | | | gdk filter stuff to get events without a window in our app
* new functions for setting WM hintsOwen Taylor1998-02-271-0/+165
| | | | | | | | | | | | | | | | | | Thu Feb 26 22:36:46 1998 Owen Taylor <owt1@cornell.edu> * gdk/gdkwindow.c gdktypes.c gdk.h: new functions for setting WM hints gdk_window_set_icon() gdk_window_set_icon_name() gdk_window_set_group() gdk_window_set_decorations() gdk_window_set_functions() * gdk/MwmUtil.h: new uninstalled header file from lesstif distribution, used for setting MWM hints. * gdk/gdkdnd.c Makefile.am: renamed from gdk/gdk_dnd.c
* applied patch to fix draw_indicator behaviour from Lars Hamann and StefanTim Janik1998-02-171-6/+18
| | | | | | | | | | | | | | | | | Tue Feb 17 05:41:31 1998 Tim Janik <timj@gimp.org> * gtk/gtkcheckbutton.c: * gtk/gtkradiobutton.c: * gtk/gtktogglebutton.c: applied patch to fix draw_indicator behaviour from Lars Hamann and Stefan Jeske. * gtk/gtkmain.h: * gtk/gtkmain.c (gtk_grab_get_current): new function that returns the current grab widget or NULL. * gdk/gdkwindow.c (gdk_window_shape_combine_mask): remove shape mask if mask==NULL (provided by Stefan Wille).
* D&D fixesElliot Lee1998-02-161-4/+1
|
* don't wipe out window_private's x and y coordinates if the configureTim Janik1998-02-071-1/+0
| | | | | | | | Sat Feb 7 02:29:01 1998 Tim Janik <timj@gimp.org> * gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x and y coordinates if the configure notify is only about resizing, query the correct origin instead.
* Only query the colormap for GRAYSCALE and PSEUDOCOLOR visuals, and don'tOwen Taylor1998-02-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Tue Feb 3 15:34:27 1998 Owen Taylor <owt1@cornell.edu> * gdk/gdkcolor.c (gdk_colormap_get_system): Only query the colormap for GRAYSCALE and PSEUDOCOLOR visuals, and don't ask for more than 256 colors in any case. * gdk/gdkwindow.c (gdk_window_internal_destroy): Remove the input window information when we destroy the window, not when we are notified of it. * gdk/gdkinputcommon.h (gdk_input_device_new): Work around bug in XFree86 3.3.1's handling of Wacom macro buttons. by assumming no device will report exactly 25 buttons. * gdk/gdkinputcommon.h (gdk_input_common_other_event): Fill in string translation for generated key press events, do sanity checking on received key codes. * gdk/gdkcc.c (gdk_color_context_new): Allocate enough room for a GdkColorContextPrivate, not just for a GdkColorContext.
* added a bunch of checks for window != NULL and private->destroyed. (don'tTim Janik1998-01-261-71/+144
| | | | | | | | | | | | | | | Mon Jan 26 02:15:29 1998 Tim Janik <timj@gimp.org> * gdk/gdkdraw.c: * gdk/gdkgc.c: * gdk/gdkimage.c: * gdk/gdkinput.c: * gdk/gdkpixmap.c: * gdk/gdkproperty.c: * gdk/gdkselection.c: * gdk/gdkwindow.c: added a bunch of checks for window != NULL and private->destroyed. (don't trust this cvs commit message, i didn't modify that many files!)
* Fixed GDK_INPUT_ONLY window type. -JayJay Painter1998-01-171-1/+1
|
* Take putback events into accountOwen Taylor1998-01-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gdk/gdk.c (gdk_events_pending): Take putback events into account * gdk/gdk.c (gdk_event_free): Handle dropdataavaible memory allocation correctly. (Incompatible change: client must _not_ fre event->data and event->data_type.) * gdk/gdk.c (gdk_event_translate): Changed DND dragging so that we don't ungrab pointer when we reenter window to prevent extra Enter/Leave effects which had bad effects. Changed drag zone handling to not send uncessary DragEnter events. Fixed EnterNotify/LeaveNotify handling. (Only pay attention to events on window, don't specify these events to XGrabPointer - that isn't valid, and handle reverse the sense of the handling of LeaveNotify.) * gdk/gdkwindow.c (gdk_window_remove_filter): Free removed filter. * gtk/gtk.defs (GdkFont): gdk_font_free => gdk_font_unref * gtk/gtkmain.{c,h} (gtk_events_pending): new function - apps should use this instead of gdk_events_pending. * gtk/gtkvbbox.h: Fixed a duplication in the headers. * gtk/testgtk.c (dnd_drop): Don't free the drop data, it belongs to the event.