summaryrefslogtreecommitdiff
path: root/gtk/gtkplug.c
Commit message (Collapse)AuthorAgeFilesLines
* Keep GtkPlug in sync with the global list of toplevels.Matthias Clasen2009-01-231-2/+2
| | | | | | | | | | | | | | | | | Patch by Federico Mena Quintero * gtk/gtkwindow.h: * gtk/gtkwindow.c (_gtk_window_set_is_toplevel): New internal function used when a GtkPlug parents/unparents itself by an in-process GtkSocket. This keeps the plug's GTK_TOPLEVEL flag in sync with the global toplevel_list. * gtk/gtkplug.c (gtk_plug_set_is_child): Call _gtk_window_set_is_toplevel() to keep the toplevel list updated, instead of just setting/unsetting the GTK_TOPLEVEL flag. svn path=/trunk/; revision=22191
* gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.cMichael Natterer2008-08-121-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/gtkaccellabel.c * gtk/gtkcalendar.c * gtk/gtkclist.c * gtk/gtkentry.c * gtk/gtkeventbox.c * gtk/gtkfilechooserbutton.c * gtk/gtkfilechooserdefault.c * gtk/gtkhandlebox.c * gtk/gtkhsv.c * gtk/gtkiconview.c * gtk/gtkimage.c * gtk/gtklayout.c * gtk/gtklistitem.c * gtk/gtkmenuitem.c * gtk/gtkmessagedialog.c * gtk/gtknotebook.c * gtk/gtkpaned.c * gtk/gtkpathbar.c * gtk/gtkplug.c * gtk/gtkprintunixdialog.c * gtk/gtkrange.c * gtk/gtkrecentchooserdefault.c * gtk/gtkruler.c * gtk/gtksocket.c * gtk/gtktext.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtktreeitem.c * gtk/gtktreeview.c * gtk/gtkviewport.c * gtk/gtkwin32embedwidget.c: chain up unconditionally in realize(), unrealize(), map(), unmap(), style_set(), key_press_event() and size_request() svn path=/trunk/; revision=21088
* consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance)Michael Natterer2008-08-121-2/+2
| | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/*.c: consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance) instead of (*GTK_FOO_CLASS(parent_class))->bar(instance). svn path=/trunk/; revision=21085
* gtk/gtkdnd-quartz.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkfilesel.cSven Neumann2008-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * gtk/gtkdnd-quartz.c * gtk/gtkdnd.c * gtk/gtkentry.c * gtk/gtkfilesel.c * gtk/gtkimcontextsimple.c * gtk/gtkimmulticontext.c * gtk/gtkoptionmenu.c * gtk/gtkplug.c * gtk/gtkrecentchooserdefault.c * gtk/gtkscrolledwindow.c * gtk/gtksocket-x11.c: use canonical signal names in some more places that I missed earlier. svn path=/trunk/; revision=21069
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Bug 539363 – Segfault when creating GtkPlugsBjörn Lindqvist2008-06-211-1/+1
| | | | | | | | | | | 2008-06-21 Björn Lindqvist <bjourne@gmail.com> Bug 539363 – Segfault when creating GtkPlugs * gtk/gtkplug.c (gtk_plug_class_init): Spaces not allowed in property names. "socket window" => "socket-window" svn path=/trunk/; revision=20661
* must return a value of the appropriate type with g_return_val_if_failHans Breuer2008-06-201-1/+1
| | | | | | | | | | | | | | | | | 2008-06-20 Hans Breuer <hans@breuer.org> * gtk/gtkmenuitem.c gtk/gtkmessagedialog.c gtk/gtkplug.c : must return a value of the appropriate type with g_return_val_if_fail * gdk/gdkconfig.h.win32 : add the GSEAL definition here as well * gtk/gtkfilesystem.c : don't add the "File System" on win32 * tests/makefile.msc : remove broken autotestfile(system|chooser) from build svn path=/trunk/; revision=20657
* Add missing Since: gtk-doc markup for newly added GSEAL API. Change allJohan Dahlin2008-06-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-20 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkaccelgroup.c: * gtk/gtkcolorseldialog.c: * gtk/gtkcontainer.c: * gtk/gtkdialog.c: * gtk/gtkentry.c (gtk_entry_class_init): * gtk/gtkfontsel.c: * gtk/gtkhandlebox.c: * gtk/gtklayout.c: * gtk/gtkmenu.c (gtk_menu_class_init): * gtk/gtkmenuitem.c (gtk_menu_item_class_init): * gtk/gtkplug.c (gtk_plug_class_init): * gtk/gtkselection.c: * gtk/gtksocket.c: * gtk/gtktreeselection.c: * gtk/gtkwidget.c (gtk_widget_class_init): * gtk/gtkwindow.c: Add missing Since: gtk-doc markup for newly added GSEAL API. Change all Since: GSEAL-branch to Since: 2.14. svn path=/trunk/; revision=20639
* Add gtk_plug_get_socket_windowTim Janik2008-06-201-1/+36
| | | | svn path=/trunk/; revision=20629
* Seal GtkPlugTim Janik2008-06-201-0/+16
| | | | svn path=/trunk/; revision=20611
* use g_object_ref() and unref() instead of the deprecated gtk_widget_ref()Michael Natterer2008-06-161-5/+5
| | | | | | | | | | 2008-06-17 Michael Natterer <mitch@imendio.com> * gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref() and unref() instead of the deprecated gtk_widget_ref() and unref(). svn path=/trunk/; revision=20411
* gtk/gtkcellview.c gtk/gtklabel.c gtk/gtklayout.c gtk/gtklist.cMichael Natterer2008-02-071-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | 2008-02-07 Michael Natterer <mitch@imendio.com> * gtk/gtkcellview.c * gtk/gtklabel.c * gtk/gtklayout.c * gtk/gtklist.c * gtk/gtkmenu.c * gtk/gtkmenushell.c * gtk/gtkmisc.c * gtk/gtkoptionmenu.c * gtk/gtkplug.c * gtk/gtkpreview.c * gtk/gtkprogress.c * gtk/gtkradiomenuitem.c * gtk/gtkscale.c * gtk/gtkscrolledwindow.c * gtk/gtksocket.c: remove g_return_if_fail() from private functions and virtual function implementations. svn path=/trunk/; revision=19492
* Move some docs inlineMatthias Clasen2007-07-111-0/+7
| | | | svn path=/trunk/; revision=18447
* Notify the "embedded" property also on normal construction and whenChristian Persch2006-12-251-1/+6
| | | | | | | | | 2006-12-25 Christian Persch <chpe@cvs.gnome.org> * gtk/gtkplug.c: (gtk_plug_construct_for_display), (gtk_plug_unrealize): Notify the "embedded" property also on normal construction and when destroying the socket window. Bug #388738.
* Make it possible to track the embeddedness of statusicon (#387215, MartynMatthias Clasen2006-12-221-0/+44
| | | | | | | | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> Make it possible to track the embeddedness of statusicon (#387215, Martyn Russell, patch by Christian Persch) * gtk/gtkstatusicon.c: Add orientation and embedded properties. * gtk/gtkplug.c: * gtk/gtkplug-x11.c: Add an embedded property. * tests/teststatusicon.c: Test the new properties.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-39/+10
|
* Use the slice allocator for many small allocations.Matthias Clasen2006-01-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaccelmap.c: * gtk/gtkactiongroup.c: * gtk/gtkdialog.c: * gtk/gtkfilesystemunix.c: * gtk/gtkgc.c: * gtk/gtkkeyhash.c: * gtk/gtkplug.c: * gtk/gtktextiter.c: * gtk/gtktextlayout.c: * gtk/gtkuimanager.c: * gtk/gtkwidget.c: * gtk/gtkwindow.c: * gtk/gtkxembed.c: Use the slice allocator for many small allocations. * gtk/gtkcolorsel.c: * gtk/gtktreeview.c: Use IPN. * gtk/gtkwidget.c: Remove an unused field from the AccelPath struct.
* Fix the buildMatthias Clasen2005-12-201-1/+1
|
* Documentation fixes.Matthias Clasen2005-12-191-22/+22
| | | | | | | 2005-12-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtkplug.c: * gtk/gtkwindow.c: Documentation fixes.
* Keep track of cursor position also in root window coordinates. Prune outTor Lillqvist2005-09-021-0/+2
| | | | | | | | | | | | | | | | | | | 2005-09-02 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c (gdk_event_translate): Keep track of cursor position also in root window coordinates. Prune out superfluous WM_MOUSEMOVE messages even earlier, based on root window coordinates. Windows sends WM_MOUSEMOVE messages after a new window has ben mapped below the cursor even if the mouse doesn't move. We used to generate GDK_MOTION_NOTIFY in these cases. This confused at least gtk_menu_motion_notify(). (#314995) * gtk/gtkintl.h: No need to include config.h here. It caused warnings about GTK_LOCALEDIR being redefined on Win32 when compiling files where gtkintl.h is included after gtkprivate.h (which #undefines and re-#defines GTK_LOCALEDIR on Win32). * gtk/gtkplug.c: Include config.h.
* Intern some more strings.Matthias Clasen2005-09-011-2/+3
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* Fixes "notification area leaks space" (bug #312687)Mark McLoughlin2005-08-091-1/+1
| | | | | | | | | | 2005-08-09 Mark McLoughlin <mark@skynet.ie> Fixes "notification area leaks space" (bug #312687) * gtk/gtksocket-x11.c: (_gtk_socket_windowing_filter_func): gtk/gtkplug.c: (_gtk_plug_add_to_socket): don't pass a detail to g_signal_emit_by_name()
* gtk/gtksocket.c Splice out backend-dependend parts to separate files, seeTor Lillqvist2005-07-211-312/+126
| | | | | | | | | | | | | 2005-07-21 Tor Lillqvist <tml@novell.com> * gtk/gtksocket.c * gtk/gtkplug.c: Splice out backend-dependend parts to separate files, see below. * gtk/gtksocketprivate.h * gtk/gtkplugprivate.h: New files. Declare the backend-specific functions, and the private backend-independent functions they call back to.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+5
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Fix many sparse warnings.Matthias Clasen2004-10-281-1/+1
|
* 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
* Call gdk_window_enable_synchronized_configure()Soeren Sandmann2004-08-051-0/+2
| | | | | | | | | | | Thu Aug 5 19:58:08 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkplug.c (gtk_plug_realize): Call gdk_window_enable_synchronized_configure() * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): Make noop if gdk_window_enable_synchronized_configure() has not been called.
* Avoid errors when removing the plug from the socket. (#128546, ChristopherMatthias Clasen2004-02-181-2/+5
| | | | | | | Thu Feb 19 00:32:21 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when removing the plug from the socket. (#128546, Christopher Blizzard)
* Put the supported protocol version in in the right field of theMatthias Clasen2003-10-071-1/+1
| | | | | | | | Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkplug.c (xembed_set_info): Put the supported protocol version in in the right field of the _XEMBED_INFO property. (#123885, Denis Mikhalkin)
* Send the focus on to the parent when there was no focus widget before andOwen Taylor2003-08-251-91/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Aug 20 21:26:49 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkplug.c (gtk_plug_focus): Send the focus on to the parent when there was no focus widget before and no focus widget after - that is, when there are no focusable widgets. (#108678, help tracking it down from Padraig O'Briain, Federico Mena Quintero, ) * gtk/gtkxembed.[ch]: Move various shared utilities for the XEMBED protocol eused by GtkPlug and GtkSocket here. * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement a flag bit that is sent with focus mesages to indicate that the focus has wrapped around on the toplevel; use this bit to catch infinite loops when there is no focusable widget at ll in the entire toplevel. * tests/testsocket.c (child_read_watch): Remove an extraneous unref. * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: Up XEMBED protocol version to 1, add logic for sending the right version in XEMBED_EMBEDDED_NOTIFY. * gtk/gtksocket.c (gtk_socket_add_window): Send the embedder window in the XEMBED_EMBEDDED_NOTIFY as the spec requires.
* Document 2.2 API additions.Matthias Clasen2002-11-281-0/+4
|
* docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgmlSoeren Sandmann2002-11-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Nov 8 20:14:52 2002 Soeren Sandmann <sandmann@daimi.au.dk> * docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml docs/reference/gdk/tmpl/gdk-unused.sgml docs/reference/gdk/tmpl/gdkdisplay.sgml docs/reference/gdk/tmpl/general.sgml docs/reference/gdk/tmpl/input_devices.sgml docs/reference/gdk/tmpl/selections.sgml docs/reference/gtk/tmpl/gtkcellrenderer.sgml docs/reference/gtk/tmpl/gtkcurve.sgml docs/reference/gtk/tmpl/gtkdnd.sgml docs/reference/gtk/tmpl/gtkitemfactory.sgml docs/reference/gtk/tmpl/gtkmenu.sgml docs/reference/gtk/tmpl/gtkoldeditable.sgml docs/reference/gtk/tmpl/gtkoptionmenu.sgml docs/reference/gtk/tmpl/gtkpreview.sgml docs/reference/gtk/tmpl/gtkselection.sgml docs/reference/gtk/tmpl/gtksocket.sgml docs/reference/gtk/tmpl/gtkstyle.sgml docs/reference/gtk/tmpl/gtktextbuffer.sgml docs/reference/gtk/tmpl/gtktreemodel.sgml docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c gtk/gtktreemodel.h gtk/gtkwidget.h Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow without warnings. (#91680)
* Deprecation cleanupManish Singh2002-10-131-13/+14
| | | | | | | | | | | Sun Oct 13 12:29:15 2002 Manish Singh <yosh@gimp.org> * gtk/gtkcolorsel.[ch] gtk/gtkcombo.[ch] gtk/gtkplug.[ch] gtk/gtksocket.[ch] gtk/gtktreeview.[ch] gtk/gtktreeviewcolumn.[ch]: Deprecation cleanup * gtk/gtkcolorseldialog.c: make window not resizable (lost accidently in the previous cleanup)
* Add a 'type' parameter, make public.Owen Taylor2002-10-031-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Renames:Owen Taylor2002-06-201-2/+2
| | | | | | | | | | | 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
* Add a "is_focus" property indicating whether a widget is the focus widgetOwen Taylor2002-06-061-30/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Undo an accidental revert of fixes of May 16. (Caught by Padraig O'Briain)Owen Taylor2002-05-201-4/+28
| | | | | | | | | | | Mon May 20 11:47:59 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkplug.c: Undo an accidental revert of fixes of May 16. (Caught by Padraig O'Briain) * gtk/gtkctree.c (cell_size_request): Fix bug where size request for text cells was being overwritten. (#82264, Graham Swallow.)
* Fix a missing unref in the local/passive case. (#82067, Michael Meeks)Owen Taylor2002-05-171-30/+9
| | | | | | | | | | | | | | | | 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.
* Only optimize out the full configure handling if we got a gratuitousOwen Taylor2002-05-161-30/+0
| | | | | | | | | | | | | | | | | | Thu May 16 19:49:24 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.c (gtk_window_configure_event): Only optimize out the full configure handling if we got a gratuitous configure event(configure_request_count == 0) and the size didn't change. * gtk/gtkwindow.c (gtk_window_move_resize): Use g_message(), not g_print() for debug spew.b * gtk/gtkwindow.c (gtk_window_real_set_focus): Ref the old and new focus widgets for the scope of the function. * gtk/gtksocket.c gtkplug.c: Remove various #if 0'd bits of old code.
* Thu May 16 18:47:29 2002 Owen Taylor <otaylor@redhat.com> ↵Owen Taylor2002-05-161-4/+28
| | | | * gtk/gtkwindow.c (gtk_window_show): Disable the focus-some-widget code for GtkPlug descendants. * gtk/gtkplug.c (gtk_plug_focus_event): Eat focus-in/out events since they can be generated by keyboard grabs, but are spurious for an embeddded widget. (#79196, Padraig O'Briain) * gtk/gtksocket.c (gtk_socket_size_request): Only pay attention to the minimum size hints, and changes to that ... ignore the default size. * gtk/gtksocket.c (gtk_socket_send_configure_event): Pass in root-window relative coordinates as per the ICCCM. * gtk/gtksocket.c (gtk_socket_size_allocate): Send as many synthetic configures as necessary to make up for ConfigureRequest events we got. (#78799, Dave Camp.)
* gtk/gtkfilesel.c gtk/gtkplug.c gtk/gtkwidget.c gtk/gtkwindow.c a few typosVitaly Tishkov2002-05-131-3/+3
| | | | | | | | | | 2002-05-13 Vitaly Tishkov <tvv@sparc.spb.su> * gtk/gtkfilesel.c * gtk/gtkplug.c * gtk/gtkwidget.c * gtk/gtkwindow.c a few typos in docs were fixed
* changed the order of the arguments. #80278Erwann Chenede -2002-05-031-5/+5
| | | | | | | 2002-05-03 Erwann Chenede - <erwann.chenede@sun.com> * gtk/gtkplug.[hc] (gtk_plug_construct_for_display): changed the order of the arguments. #80278
* Doc fixes.Owen Taylor2002-04-301-1/+0
| | | | | | Tue Apr 30 14:15:14 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkfilesel.c gtk/gtkselection.c: Doc fixes.
* Integrate Erwann Chenede's multihead changes for the gtk/ directory.Alex Larsson2002-04-291-30/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Save x and y in window_private.Alexander Larsson2002-04-211-1/+5
| | | | | | | | | | | 2002-04-21 Alexander Larsson <alla@lysator.liu.se> * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Save x and y in window_private. * gtk/gtkplug.c (_gtk_plug_add_to_socket): Move plug window outside the visible area to avoid flashing until the first size_allocate.
* Implement accelerator propagation using a custom XEMBED_GTK_KEY_GRABOwen Taylor2002-02-241-102/+67
| | | | | | | | | | | | | Sat Feb 23 20:33:29 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkplug.[ch] gtk/gtksocket.[ch] gtk/xembed.h: Implement accelerator propagation using a custom XEMBED_GTK_KEY_GRAB XEMBED_GTK_KEY_UNGRAB pair of messages. * gtk/gtkwindow.[ch]: private export _gtk_window_keys_foreach(). * gtk/gtkplug.c (gtk_plug_set_is_child): Clear focus and default widgets.