summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.c
Commit message (Collapse)AuthorAgeFilesLines
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Ref and sink the column. (gtk_combo_box_menu_destroy): Unref the column.Matthias Clasen2004-08-091-2/+8
| | | | | | | | | | | | | | Sun Aug 8 23:36:55 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref and sink the column. (gtk_combo_box_menu_destroy): Unref the column. Sun Aug 8 23:35:00 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): (gtk_drag_dest_add_text_targets): Don't leak a reference to the target list.
* take targets into account again to allow dnd of other things than textHans Breuer2004-08-081-4/+1
| | | | | | | | | | | 2004-08-07 Hans Breuer <hans@breuer.org> * gtk/gtkdnd.c (gtk_drag_dest_set) : take targets into account again to allow dnd of other things than text * gdk/win32/gdkselection-win32.c : offer windows bitmap to be pasted from clipboard (makes The GIMP 2.1's "File/Acquire/Paste as New" work, only using gtk+ API)
* Really fix the initialization of the target list.Matthias Clasen2004-08-061-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-08-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really fix the initialization of the target list. Support XDND v5. (#10220, Owen Taylor) * gdk/x11/gdkdnd-x11.c: Record the XDND version and whether the drop was successful in the GdkDragContextPrivateX11 struct. (xdnd_finished_filter): Store the success status of the drop for an XDND version 5 interaction. For other versions, always assume the drop was successful. (xdnd_check_dest): Return the protocol version. (_gdk_drag_get_protocol_for_display): Return the protocol version. (gdk_drag_find_window_for_screen): Store the used protocol version in the GdkDragContext. (xdnd_send_enter): Send the used protocol version from the context, instead of hardwiring 3. (xdnd_enter_filter): Accept protocol versions >= 3 and store the used protocol version in the context. * gdk/gdkdnd.h: * gdk/x11/gdkdnd-x11.c (gdk_drag_drop_succeeded): New function to find out whether a drop was successful.
* Create the change to initialize target_list to an empty list instead ofMatthias Clasen2004-07-231-1/+5
| | | | | | | | | | | | Fri Jul 23 13:04:10 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkdnd.c (gtk_drag_dest_set): Create the change to initialize target_list to an empty list instead of NULL, since it broke tree dnd. (#148215, Ernst Persson) * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets): * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): Instead handle target list being NULL here.
* Create an empty target list if targets is NULL.Soeren Sandmann2004-07-181-9/+2
| | | | | | | | | | Sun Jul 18 15:28:24 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkdnd.c (gtk_drag_source_set, gtk_drag_dest_set): Create an empty target list if targets is NULL. * configure.in: Add check for X11/extensions/sync.h. (#147416, Morten Welinder)
* Support text/plain selection target (#55117, Owen Taylor)Matthias Clasen2004-07-171-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Jul 17 00:48:27 2004 Matthias Clasen <maclas@gmx.de> Support text/plain selection target (#55117, Owen Taylor) * gtk/gtkselection.h: * gtk/gtkdnd.h: * gtk/gtkselection.c (gtk_target_list_add_text_targets): * gtk/gtkdnd.c (gtk_drag_dest_add_text_targets): * gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New functions to facilitate handling of text targets. * gtk/gtkentry.c: * gtk/gtktextview.c: Use the new text target handling functions instead of hardwiring the list of supported text targets everywhere. * gtk/gtkselection.c (gtk_selection_data_get_text): (gtk_selection_data_set_text): Support the targets text/plain, text/plain?charset=utf-8 and text/plain?charset=<LOCALE-CHARSET> as outlined in #55117: For text/plain send only ASCII, but accept 8-bit text and treat it as ISO-8859-1 as specified by the Xdnd spec. Always send CRLF terminators. Accept either and convert into the native terminator for the platform.
* For GTK_IS_PLUG toplevels, call gdk_window_get_origin() notOwen Taylor2004-03-131-1/+13
| | | | | | | | | | Sat Mar 13 10:49:46 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): For GTK_IS_PLUG toplevels, call gdk_window_get_origin() not gtk_window_get_position, as a hackround for not having accurate notification of window position for embedded windows. (#136112, Dan Winship)
* some more settings from system, also reflect some name changes done aHans Breuer2004-03-071-0/+4
| | | | | | | | | | | | | | | | 2004-03-07 Hans Breuer <hans@breuer.org> * gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting) : some more settings from system, also reflect some name changes done a while ago in the x11 backend * gdk/win32/makefile.msc : build gdkspawn-win32.c * gtk/gtkdnd.c : gtk_drag_source_[gs]et_target_list, added "Since: 2.4" * gtk/makefile.msc.in : build gtkpathbar, link shell32.lib * tests/makefile.msc : some more tests get build
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* Add gtk_drag_source_set/get_target_list(). (#127499, based on patch fromOwen Taylor2004-03-021-2/+58
| | | | | | | | | | Mon Mar 1 19:30:25 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.[ch]: Add gtk_drag_source_set/get_target_list(). (#127499, based on patch from Michael Natterer) * tests/testgtk.c: Fix bidi strings to display correctly with new auto-bidi.
* Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle functions.Soeren Sandmann2003-12-291-0/+4
| | | | | | | | | | | Mon Dec 29 12:22:22 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkuimanager.c (do_updates): * gtk/gtktoolbar.c (slide_idle_handler): * gtk/gtkdnd.c (gtk_drag_update_idle): Add GDK_THREADS_ENTER()/GDK_THREADS_LEAVE() pairs around idle functions. (#130157, patch from Olexiy Avramchenko).
* brooooooooken pipe.Kristian Rietveld2003-09-031-1/+1
|
* Rename parameter target_list back to targets, to pacify gtk-doc.Matthias Clasen2003-07-131-4/+4
| | | | | | 2003-07-13 Matthias Clasen <maclas@gmx.de> * gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to targets, to pacify gtk-doc.
* gtk/gtkdnd.c (_gtk_drag_source_handle_event) Remove use ofOwen Taylor2003-07-061-55/+79
| | | | | | | | | | | | | | | | | Sun Jul 6 13:00:20 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (_gtk_drag_source_handle_event) * gtk/gtkdnd.c (gtk_drag_begin_internal): Remove use of GDK_POINTER_MOTION_HINT_MASK. * gtk/gtkdnd.c (gtk_drag_update_idle): Move updating of the drag into an idle as a superior form of expose compression. * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon creation here, so that we have an icon at the start of the drag (e.g., when retrieving the window cache information.)
* Move default icon creation here, so that we have an icon at the start ofOwen Taylor2003-07-061-59/+80
| | | | | | | | | Sun Jul 6 11:56:48 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_begin_internal): Move default icon creation here, so that we have an icon at the start of the drag (e.g., when retrieving the window cache information.)
* Move the grabs up earlier, so we don't get a big pile of uncompressedOwen Taylor2003-07-051-25/+33
| | | | | | | | | | | | | | | | | | | | Sat Jul 5 00:49:32 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up earlier, so we don't get a big pile of uncompressed motion events before the grab takes effect. * gtk/gtkdnd.c (gtk_drag_update_icon): Call gdk_window_process_all_updates() so that the area we are dragging over gets a change to redraw. * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use gdk_window_get_position(), not gdk_window_get_origin(). * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext) gdkdisplay-x11.h: use XShapeQueryExtension to avoid duplicate XQueryExtension when we actually use it. Remove unnecessary caching in GdkDisplayX11.
* Use application/x-rootwindow-drop for root window drops. (#108670, AlexOwen Taylor2003-06-091-3/+7
| | | | | | | | | | | Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com> * tests/testdnd.c: Use application/x-rootwindow-drop for root window drops. (#108670, Alex Larsson) * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop): Accept either application/x-rootwin-drop (what GTK+ has always used) or application/x-rootwindow-drop (what the XDND standard specifies).
* Remove dubious bitfields of unspecified signedness. (#112919, MortenMatthias Clasen2003-05-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-27 Matthias Clasen <maclas@gmx.de> * io-wbmp.c: Remove dubious bitfields of unspecified signedness. (#112919, Morten Welinder)gdk-p * gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder) * gtk/gtkwindow-decorate.c: * gtk/gtktreeprivate.h: * gtk/gtkdnd.c: * gdk/win32/gdkwindow-win32.h: * gdk/linux-fb/gdkprivate-fb.h: * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of unspecified signedness. (#112919, Morten Welinder) * gtk/queryimmodules.c (escape_string): * gtk/gtktextbtree.c (_gtk_text_btree_get_text): * gtk/gtksettings.c (_gtk_settings_parse_convert): * gtk/gtkrc.c (gtk_rc_parse_assignment): * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all occurances of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
* Don't cast a gchar to a GObject. (#112762)Anders Carlsson2003-05-111-1/+1
| | | | | | | 2003-05-11 Anders Carlsson <andersca@codefactory.se> * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to a GObject. (#112762)
* Actually set the icon type to the stock icon type. (#111735, DaveMatthias Clasen2003-05-051-0/+1
| | | | | | | 2003-05-05 Matthias Clasen <maclas@gmx.de> * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock): Actually set the icon type to the stock icon type. (#111735, Dave Bordoley)
* demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.cManish Singh2003-02-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Feb 27 17:44:24 2003 Manish Singh <yosh@gimp.org> * demos/gtk-demo/main.c * demos/gtk-demo/tree_store.c * gdk/x11/gdkscreen-x11.c * gtk/gtkcellrenderertoggle.c * gtk/gtkcolorsel.c * gtk/gtkdnd.c * gtk/gtkeditable.c * gtk/gtkentry.c * gtk/gtkmenu.c * gtk/gtkmenubar.c * gtk/gtkmenuitem.c * gtk/gtkmenushell.c * gtk/gtkrc.c * gtk/gtksettings.c * gtk/gtkstyle.c * gtk/gtktextbuffer.c * gtk/gtktextview.c * gtk/gtktreeviewcolumn.c * tests/testgtk.c * tests/testtext.c * tests/testtreeedit.c * tests/testtreefocus.c * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
* Replace uses of gtk_timeout_* and gtk_idle_* by their non-deprecatedMatthias Clasen2003-02-051-5/+5
| | | | GLib counterparts. Fully deprecate gtk_timeout_* and gtk_idle_*.
* Skip insensitive widgets. (#84061)Owen Taylor2002-12-121-1/+1
| | | | | | | Thu Dec 12 17:01:38 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_find_widget): Skip insensitive widgets. (#84061)
* Deprecation cleanupManish Singh2002-10-131-160/+185
| | | | | | | | | | Sun Oct 13 16:55:49 2002 Manish Singh <yosh@gimp.org> * gtk/gtkdnd.c gtk/gtkradiobutton.[ch]: Deprecation cleanup * gtk/Makefile.am: Added disable deprecation flags * demos/pixbuf-init.c demos/gtk-demo/changedisplay.c: minor clean up
* Add gdk_drag_find_window_for_screen(), so that we can interpret x_root /Owen Taylor2002-10-071-71/+201
| | | | | | | | | | | | | | | | | | | | Mon Oct 7 15:48:44 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdnd.[ch] gdk/x11/gdkdnd-x11.c: Add gdk_drag_find_window_for_screen(), so that we can interpret x_root / y_root relative to the correct screen. * gdk/gdkdnd.c Makefile.am gdk/x11/gdkdnd-x11.c gdk/fb/gdkdnd-fb.c gdk/win32/gdkdnd-win32.c: New file. Move gdk_drag_find_window(), gdk_drag_get_protocol() here. * gtk/gtkdnd.c: Handle drags between screens; use a fallback icon for icons set as windows/pixmaps, move the drag icon between displays for icons set as pixbufs. * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix infinite loop from last change.
* Improve checks on public entry points, including, among other thingsOwen Taylor2002-10-041-25/+45
| | | | | | | | | | | | | | | 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.
* Add a 'type' parameter, make public.Owen Taylor2002-10-031-32/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add a note that yes, we do know what () means and we can't change it.Owen Taylor2002-08-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 5 14:50:13 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkitemfactory.h: Add a note that yes, we do know what () means and we can't change it. Fixes for warnings reported by David L. Cooper II * tests/testtext.c: Warning fixes. Fix order of arguments to gtk_message_dialog_new(). (#85891) * gtk/gtktreeitem.c (gtk_tree_item_paint): Fix incorrect use GTK_STATE_INSENSITIVE for a shadow type. (Not clear what the drawing intent was, but it's ENABLE_BROKEN anyways.) (#85880) * gtk/gtktexttypes.c: Use character literals instead of direct constants to avoid warning. (#85878) * gtk/theme-bits/decompose-bits.c gtk/gtkstyle.c: Fix some signed/unsigned problems (#85876) * gtk/gtksignal.c (gtk_signal_newv): Add an explicit cast from GtkSignalRunType to GSignalFlags. (#85875) * gtk/gtkitemfactory.c (gtk_item_factory_add_item): Fix use of guint instead of GdkModifierType (#85871) * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): Fix signed/unsigned problem (#85870) * gtk/gtkimcontext.c (gtk_im_context_class_init): Get rid of GtkType/Signal*. (Fixes #85869 as a side effect) * gtk/gtkdnd.c (gtk_drag_get_cursor): Fix some signed/unsigned warnings (#85865)
* Make the core pointer object per-display. (#85698)Owen Taylor2002-06-181-1/+1
| | | | | | | | | | 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)
* Replace gdk_cursor_new_for_screen() with gdk_cursor_new_for_display().Owen Taylor2002-06-181-15/+11
| | | | | | | | | | | | | | | 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.
* Save the initial grab time, use that when changing the pointer. (#83052,Owen Taylor2002-06-131-1/+3
| | | | | | | | 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.)
* Disconnect from keypress events.Dave Camp2002-05-291-0/+3
| | | | | | 2002-05-29 Dave Camp <dave@ximian.com> * gtk/gtkdnd.c (gtk_drag_end): Disconnect from keypress events.
* Protect against reentrancy problems by emitting ::preedit_changed at theOwen Taylor2002-05-171-1/+1
| | | | | | | | | | | | | | | | | Fri May 17 14:40:24 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): Protect against reentrancy problems by emitting ::preedit_changed at the end, fixing input context leak. (Yao Zhang) * modules/input/gtkimcontextxim.c (status_window_free): Patch from Federico Mena Quintero to fix problem where references to IMContextXIM were kept around after module was unloaded. * gtk/gtkdnd.c (gtk_drag_dest_set): NULL initialize proxy window.
* Fix a missing unref in the local/passive case. (#82067, Michael Meeks)Owen Taylor2002-05-171-0/+3
| | | | | | | | | | | | | | | | Fri May 17 13:56:23 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkplug.c (gtk_plug_filter_func): Fix a missing unref in the local/passive case. (#82067, Michael Meeks) * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Fix reference leak on the plug window. * tests/testsocket.c (add_child): Fix memory leak. * gtk/gtkdnd.c (gtk_drag_dest_site_destroy): Unref the proxy window.
* Don't call gdk_pointer_grab() to change the cursor if we've alreadyOwen Taylor2002-05-151-1/+7
| | | | | | | | | Wed May 15 18:15:45 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Don't call gdk_pointer_grab() to change the cursor if we've already ungrabbed on button release / escape. (#80420, Dave Camp)
* Integrate Erwann Chenede's multihead changes for the gtk/ directory.Alex Larsson2002-04-291-38/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Apr 29 18:28:00 2002 Owen Taylor <otaylor@redhat.com> Integrate Erwann Chenede's multihead changes for the gtk/ directory. * gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(), make internals multihead aware. * gtk/gtkcolorsel.[ch]: Add gtk_color_selection_set_change_palette_with_screen_hook () [ugh!] make up for non-multihead safety of gtk_color_selection_set_change_palette_hook() * gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add gtk_{invisible,menu,window}_set_screen(); add "screen" properties for GtkWindow and GtkMenu. * gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(), gtk_plug_new_for_display(). Multihead fixes. * gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(), make internals multihead aware. * gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get rid of now-useless gtk_settings_constructor(). * gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix check/radio button indicators bitmap handling to be multihead safe. * gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(), gtk_widget_get_display(), gtk_widget_get_clipboard(), gtk_widget_get_root_window(). * gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c: misc mechanical multihead-safety fixes. * gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for the dropper, look up the color palette only at realization time, other multihead fixes. * gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when unrealizing. * gtk/gtkentry.c: Only claim ownership of the primary selection when realized, misc multihead fixes. * gtk/gtkfontsel.c: Only fill in fonts when attached to a screen, fix gtk_font_selection_get_font() for multihead. * gtk/gtkgc.c: make the depth => drawable hash per-screen. * gtk/gtkinvisible.c: Add a constructor that realizes the widget, so we get a realized widget with g_object_new() as well gtk_invisible_new() as before. * gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap variables. * gtk/gtktextdisplay.c: Add warnings if stipple bitmaps are used on the wrong screen. * gtk/gtktoolbar.c: Make handling of GtkSettings-based layout read properties and connect to settings when the screen is changed, rather than on init/finalize. * gtk/gtkwindow.c: Fix icon handing to be multihead safe ... default icon pixmaps/mask are only shared between windows on the same screen. Misc multihead fixes. Sat Apr 27 13:49:53 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkclipboard.c (gtk_clipboard_get_for_display): Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE. 2002-04-29 Alex Larsson <alexl@redhat.com> * gdk/linux-fb/gdkproperty-fb.c (gdk_property_get): Fix silly bug, noticed by Sven Neumann. Sun Apr 28 22:43:55 2002 Jonathan Blandford <jrb@gnome.org> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix so that you can set a new sort func.
* Fix coordinate translations, once and for all.Owen Taylor2002-01-081-23/+23
| | | | | | | | | | | Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate translations, once and for all. * gtk/gtktextbuffer.c (paste_from_buffer): Free the ClipboardRequest structure. (#66198, HideToshi Tajima)
* Doc typo fix. (#68172)Matthias Clasen2002-01-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172) * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs. * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document. * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs. * gtk/gtkrc.c (gtk_rc_get_style_by_paths), gtk/gtkwidget.c (gtk_widget_get_toplevel, gtk_widget_push_composite_child), gtk/gtkdialog.c (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc from messing up the indentation of inline examples. * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv() instead of getenv(). * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c, gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c, gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes. * gtk/gtkaccelmap.c (gtk_accel_map_add_filter, gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner): Document. * gtk/tmpl/gtksocket.sgml: Mention gtk_socket_get_id() instead of GTK_WINDOW_XWINDOW(). (#68172) * gtk/gtk-sections.txt: Move functions which are documented as "private" or "internal" into Private subsections. * gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkobject.sgml, gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwidget.sgml, gtk/tmpl/gtkclipboard.sgml, gtk/tmpl/gtkstyle.sgml, gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtkfeatures.sgml: Minor markup fixes. * gtk/tmpl/gtksignal.sgml: Add link to GLib signal docs. * gtk/tmpl/gtkpreview.sgml, gtk/tmpl/gtktext.sgml, gtk/tmpl/gtktree.sgml: Remove "deprecated" from short desc. * gtk/tmpl/gtkrc.sgml: Correct names of default RC files.
* don't forget to offset the pointer by x/y_offset into the new window whenTim Janik2002-01-071-3/+3
| | | | | | | | | | | | Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org> * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset the pointer by x/y_offset into the new window when we found the drag destination. * gtk/gtkaccelmap.c (internal_change_entry): fix return code for simulation when the entry already contains the required accel key and mod.
* At least don't infinite loop if the widget and window heirarchies don'tOwen Taylor2002-01-041-14/+50
| | | | | | | | | | | | | | | Fri Jan 4 13:05:15 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_find_widget): At least don't infinite loop if the widget and window heirarchies don't correspond. * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes in heirarchy in ::drag_motion, ::drag_drop callbacks by referencing child widget lists. (Patch from Tim) * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem with widgets where window.x != widget->allocation.
* Free dash list if necessary.Anders Carlsson2002-01-031-1/+3
| | | | | | | | | | | | | | 2002-01-03 Anders Carlsson <andersca@gnu.org> * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if necessary. * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list. * gtk/gtkcolorsel.c (get_focus_gc): Free dash list. * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask if it's NULL.
* Connect gtk_drag_hightlight_expose _after_, so it works with widgets thatOwen Taylor2001-12-261-3/+3
| | | | | | | | Wed Dec 26 12:28:24 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_highlight): Connect gtk_drag_hightlight_expose _after_, so it works with widgets that paint there entire background. (#66735)
* Update xsettings name.Anders Carlsson2001-12-091-3/+7
| | | | | | | | | | | | 2001-12-09 Anders Carlsson <andersca@gnu.org> * gdk/x11/gdkevents-x11.c: Update xsettings name. * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the gtk-dnd-drag-threshold GtkSetting. * gtk/gtksettings.c (gtk_settings_class_init): Add setting for dnd drag threshold.
* Version 1.3.11, interface, binary age 0.Owen Taylor2001-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Nov 21 15:21:26 2001 Owen Taylor <otaylor@redhat.com> * configure.in (GTK_MICRO_VERSION): Version 1.3.11, interface, binary age 0. * NEWS: Updates * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML fixes in docs. * gtk/gtkmain.h: Remove unused and misnamespaced get_gtk_win32_directory() prototype. * gdk/gdkimage.c (gdk_image_get): Fix parameter names to match header. * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(), gdk_window_set_transient_for(), gdk_window_set_geometry_hints(), to match docs. * gdk/gdkevents.c (gdk_event_get_coords) gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active) gtk/gtkdnd.c (gtk_drag_set_icon_stock): Fix parameter names in docs. * docs/faq/Makefile.am (FAQ_FILES): Add missing files. (#64961, Akira Tagoh)
* gtk/gtkbutton.[ch] fixed inline commentsSven Neumann2001-10-261-2/+1
| | | | | | | | | 2001-10-26 Sven Neumann <sven@gimp.org> * gtk/gtkbutton.[ch] * gtk/gtkdnd.c: fixed inline comments * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
* Fix problem with g_return_if_fail return value.Owen Taylor2001-10-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix problem with g_return_if_fail return value. * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the virtual atom code from the gdk-multihead branch, removing the per-display part. Virtualizing atoms needs to be done now to prevent compat breakage in direct Xlib accessing code in the future. (#62208) * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom(). * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom an opaque pointer type so the compiler catches attempts to mingle it with X atoms. * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c, gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c} gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c} tests/testdnd.c,tests/testselection.c: Fix up for above atom changes. * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we now have the ability to add custom predefines. * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}: Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls to gtk_clipboard_get(). * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up for GdkAtom => pointer change. * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined atoms, fix for GdkAtom => pointer change.
* Documentation updates. Updates.Matthias Clasen2001-10-171-14/+13
| | | | | | | * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c: Documentation updates. * gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkclipboard.sgml, gdk/tmpl/general.sgml, gdk/tmpl/threads.sgml, gdk/tmpl/x_interaction.sgml: Updates.
* Allow NUOL for @target_list to mean, use gtk_drag_dest_get_target_listOwen Taylor2001-10-031-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Oct 3 10:42:54 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow NUOL for @target_list to mean, use gtk_drag_dest_get_target_list (widget). * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where drop could hang when calling gtk_drag_finish with success == FALSE and del == TRUE. * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where drops without a matching target found would propagate to the parent widget rather than being rejected. * gtk/gtktextview.c (gtk_text_view_drag_data_received): Use text_view->dnd_mark instead of mark name to be consistent with the rest of the code. * gtk/gtktextview.c (gtk_text_view_drag_motion): Make pendantically correct for a drop-only-in-some-places widget. (Check whether you can insert in drag_drop, not just in drag_motion ... matters in theory, and for Motif drag and drop in practice.) * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from Damian Ivereigh to not allow drops on non-editable entries. (#61124) * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow text to be moved from a non-editable entry.
* Make gdkx.h the only installed header from gdk/x11. All structures inOwen Taylor2001-09-071-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com> Make gdkx.h the only installed header from gdk/x11. All structures in gdk/x11 are opaque. * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h: Don't install gdk{drawable,pixmap,window}-x11.h. * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, GdkVisualClass into C files. * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static. * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c, gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c} Add public functions to replace previously exported direct structure access. gdk_x11_colormap_get_{xdisplay,xcolormap} gdk_x11_cursor_get_{xdisplay,xcursor}, gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage}, gdk_x11_gc_get_{xdisplay,ximage} * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo, GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals. Fix a number of variables and functions that were exported "accidentally" from GDK. * gdk/**.[ch]: gdk => _gdk for gdk_visual_init, gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data, gdk_event_notify, gdk_queued_events, gdk_queued_tail, gdk_event_new, gdk_events_queue, gdk_events_unqueue, gdk_event_queue_find_first, gdk_event_queue_remove_link, gdk_event_queue_append, gdk_event_button_generate, gdk_debug_flags, gdk_default_filters, gdk_parent_root. * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}: gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window, gdk_use_xshm, gdk_input_ignore_core. * gdk/x11/xsettings-common.h (xsettings_list_insert): Add #defines to namespace functions into the private _gdk_ namespace. * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window () to replace gdk_parent_root exported variable. Adjust and deprecate GDK_ROOT_PARENT(). * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix GDK_ROOT_PARENT usage, remove includes of port-specific headers. * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, gdk_input_devices, _gdk_input_windows, gdk_init_input_core. * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c} docs/Changes-2.0.txt: Remove gdk_wm_protocols, gdk_wm_delete_window functions, gdk_wm_take_focus, use gdk_atom_intern() instead. * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h} gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h} gtk/gtkselection.c Unexport gdk_selection_property, just use gdk_atom_intern ("GDK_SELECTION"). * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, GdkVisualprivate, gdk_x11_gc_flush. Make a number of public exports of variables into functions to increase encapsulation. * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, move to gdkinternals.h. Add gdk_device_get_core_pointer (). * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, gdk_error_warnings. * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h} docs/Changes-2.0.txt: s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen() s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow() Add gdk_x11_get_default_xdisplay(). * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, Don't export gdk_progclass, move --class command line option and handling to common portion of GDK. Miscellaneous fixes: * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix g_return_val_if_fail that should have been g_return_if_fail. * gdk/gdkinternals.h gdk/gdkprivate.h: Move gdk_synthesize_window_state() to the semi-public gdkprivate.h. * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded X11 dependency. * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: Remove unused gdk_key_repeat_disable/restore. * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def: Remove unused gdk_null_window_warnings variable. * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox; it can be retrieved from the repository; it is too far from functional to be worth having people check out; it would be easier to start from scratch, I suspect. * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID(). * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: Fix some accidentally global variables and unused global variables. * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: Fix some accidentally global variables and unused global variables. Add some space for future expansion to multihead. * gdk/gdkdrawable.h: Add four reserved function pointers for future expansion of GdkDrawableClass. * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer where we can put a GdkScreen * later.