summaryrefslogtreecommitdiff
path: root/gtk/gtktooltips.c
Commit message (Collapse)AuthorAgeFilesLines
* add extra NULL check for tooltipsdata to avoid code fiddling withKristian Rietveld2007-09-241-0/+1
| | | | | | | | | | | 2007-09-24 Kristian Rietveld <kris@imendio.com> * gtk/gtktooltips.c (gtk_tooltips_set_tip): add extra NULL check for tooltipsdata to avoid code fiddling with active_tips_data from crashing. (Fixes #460194, Peter Wright, Matthijs De Smedt). svn path=/trunk/; revision=18864
* create a dummy tip_window and tip_label, so old applications with codeKristian Rietveld2007-08-071-1/+20
| | | | | | | | | | | | 2007-08-07 Kristian Rietveld <kris@imendio.com> * gtk/gtktooltips.c (gtk_tooltips_init), (gtk_tooltips_destroy), (gtk_tooltips_force_window): create a dummy tip_window and tip_label, so old applications with code accessing those fields won't crash. svn path=/trunk/; revision=18587
* Rename the tips_data_list field back. (#447214)Matthias Clasen2007-07-211-1/+1
| | | | | | | | | | | 2007-07-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtktooltips.[hc]: Rename the tips_data_list field back. (#447214) svn path=/trunk/; revision=18520
* Replace non-deprecated API using old tooltips API, deprecate old tooltipsKristian Rietveld2007-07-091-500/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-09 Kristian Rietveld <kris@imendio.com> Replace non-deprecated API using old tooltips API, deprecate old tooltips API for real. (#451575). * gtk/gtk.symbols: updated. * gtk/gtkwidget.c (gtk_widget_real_show_help): don't call _gtk_tooltips_toggle_keyboard_mode() anymore. * gtk/gtkmenutoolbutton.[ch] (gtk_menu_tool_button_set_arrow_tooltip): deprecated, (gtk_menu_tool_button_set_arrow_tooltip_{text,markup}): replacements. * gtk/gtktoolitem.[ch] (gtk_tool_item_real_set_tooltip): use new API, (gtk_tool_item_set_tooltip): deprecated, (gtk_tool_item_set_tooltip_{text,markup): replacements. (GtkToolItemClass:set_tooltip): deprecated. * gtk/gtktooltips.[ch]: strip out all unused parts, made gtk_tooltips_set_tip() call gtk_widget_set_tooltip_text(), deprecate all of gtk_tooltips_*. * gtk/gtktoolbar.[ch] (gtk_toolbar_get_tooltips): always return TRUE, (GtkToolbar:tooltips): deprecated, renamed. * gtk/gtkaction.c (gtk_action_sync_tooltip): use new API to set the tooltip text. * tests/autotestfilechooser.c: #undef GTK_DISABLE_DEPRECATED for now, will be removed GtkFileChooserDefault has been converted. svn path=/trunk/; revision=18418
* deprecate GtkTooltips.Kristian Rietveld2007-06-261-0/+2
| | | | | | | | | | | 2007-06-26 Kristian Rietveld <kris@imendio.com> * gtk/gtk.symbols: * gtk/gtktooltips.[ch]: * docs/reference/gtk/tmpl/gtktooltips.sgml: deprecate GtkTooltips. svn path=/trunk/; revision=18241
* mark the GtkTooltips struct as private. Keep the tooltips in a hash tableSven Neumann2007-06-191-52/+66
| | | | | | | | | | | | 2007-06-19 Sven Neumann <sven@gimp.org> * gtk/gtktooltips.[ch]: mark the GtkTooltips struct as private. Keep the tooltips in a hash table instead of a linked list. Improves performance when using large amounts of tooltips (#447214). * README.in: document the GtkTooltips changes. svn path=/trunk/; revision=18188
* Don't crash if active_tips_data is NULL. (#382904, Li Yuan)Matthias Clasen2007-03-121-1/+1
| | | | | | | | | | | 2007-03-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): Don't crash if active_tips_data is NULL. (#382904, Li Yuan) 2 svn path=/trunk/; revision=17483
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-6/+2
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-2/+2
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-1/+1
|
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-32/+2
|
* Create 'composited' label.Søren Sandmann2006-04-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Apr 25 10:25:28 2006 Søren Sandmann <sandmann@redhat.com> * tests/testgtk.c (create_alpha_window): Create 'composited' label. * tests/testgtk.c (on_composited_changed): New function, change the label to say whether the screen is composited or not. * gtk/gtkwindow.c (gtk_window_on_composited_changed): When composited status change, invalidate the window and propagate the signal;. * gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint if reset_type_hint is TRUE. * gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of the old hints, store a shadow copy in the public window->type_hint bitfield, otherwise set this field to normal. Set the private field to the type hint. * gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint. * gtk/gtkwindow.c (struct _GtkWindowPrivate): New field "reset_type_hint" indicating whether the type hint needs to be reset. New field type_hint containing a GdkWindowTypeHint. * gtk/gtkwidget.c (propagate_composited_changed): New function to propagate changes in composited status. (gtk_widget_class_init): Add composited_changed signal. * gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed. * gtk/gtkwidget.c (gtk_widget_is_composited): New function. * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for. * gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether the item belongs to a menubar. Set the type_hint appropriately depending on the outcome. * gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here. * gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy changed on the attach widget. * gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to set the transient_for property for menus. * gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint. * gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window transient for the toplevel. * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set transient-for, for the popup window. * gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for new window types. * gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support for new window types. * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change): New function called whenever the compositing manager comes and goes. * gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function. * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_request_cm_notification, make_cm_atom, check_is_composited): New functions * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call _gdk_x11_screen_process_owner_change when an XFixesSelectionNotifyEvent is received. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call _gdk_x11_screen_request_cm_notification() on all screens. * gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy implementation. * gdk/gdkscreen.c (gdk_screen_class_init): New signal, 'composited-changed'. * gdk/gdkwindow.h: Add new EWMH window types. * gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited)
* Disable tooltips if gtk-touchscreen-mode is activated (#315112).Ross Burton2006-03-021-1/+16
| | | | | | | 2006-03-02 Ross Burton <ross@openedhand.com> * gtk/gtktooltips.c: Disable tooltips if gtk-touchscreen-mode is activated (#315112).
* Set timer_tag to 0 when the timeout is done. (#322291, Jean-Yves Lefort)Matthias Clasen2005-11-281-0/+2
| | | | | | | 2005-11-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when the timeout is done. (#322291, Jean-Yves Lefort)
* Various cleanups. (#315360, Kjartan Maraas)Matthias Clasen2005-09-131-2/+0
| | | | | | 2005-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
* Intern some more strings.Matthias Clasen2005-09-011-6/+7
| | | | | | | | | 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().
* Also intern static strings passed to g_object_set_data()Matthias Clasen2005-08-311-5/+5
|
* 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.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 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.
* gdk/gdkkeyuni.c gdk/gdkpixbuf-drawable.c gdk/gdkrgb.c gdk/x11/gdkdnd-x11.cMatthias Clasen2005-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-01 Matthias Clasen <mclasen@redhat.com> * gdk/gdkkeyuni.c * gdk/gdkpixbuf-drawable.c * gdk/gdkrgb.c * gdk/x11/gdkdnd-x11.c * gdk/x11/gdkevents-x11.c * gdk/x11/gdkproperty-x11.c * gdk/x11/gdkvisual-x11.c * gdk-pixbuf/gdk-pixbuf.c * gtk/gtkaction.c * gtk/gtkbindings.c * gtk/gtkcolorbutton.c * gtk/gtkcombo.c * gtk/gtkcontainer.c * gtk/gtkfilechooserdefault.c * gtk/gtkfilesel.c * gtk/gtkgamma.c * gtk/gtkiconview.c * gtk/gtkinputdialog.c * gtk/gtkitemfactory.c * gtk/gtkmenu.c * gtk/gtktextview.c * gtk/gtktooltips.c * gtk/gtktreedatalist.c * gtk/gtkuimanager.c * gtk/tree_minus.xpm * gtk/tree_plus.xpm * gtk/xdgmime/xdgmime.c * gtk/xdgmime/xdgmime.h: Move constant data to .rodata.
* 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
* Use the requisition of the widget instead of relying on the style drawingMatthias Clasen2004-07-091-1/+4
| | | | | | | | 2004-07-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_paint_window): Use the requisition of the widget instead of relying on the style drawing function to supply the size of the drawable. (#146531)
* 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>
* Fix bug 134982, reported by Morten Welinder:Matthias Clasen2004-02-221-0/+2
| | | | | | | | | | | | | | Mon Feb 23 00:38:21 2004 Matthias Clasen <maclas@gmx.de> Fix bug 134982, reported by Morten Welinder: * gtk/gtkpathbar.c (gtk_path_bar_destroy): * gtk/gtktooltips.c (gtk_tooltips_destroy): * gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the parent's ::destroy handler. * gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the parent's ::dispose handler.
* New function to improve the accessibility of tooltips. (#114851, PadraigMatthias Clasen2004-02-121-0/+42
| | | | | | | | | Thu Feb 12 23:55:08 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktooltips.h: * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New function to improve the accessibility of tooltips. (#114851, Padraig O'Briain)
* Make tooltip positioning Xinerama-aware. (#127332)Matthias Clasen2003-11-231-8/+19
| | | | | | | Sun Nov 23 22:26:25 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Make tooltip positioning Xinerama-aware. (#127332)
* 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_*.
* Fix from Nam SungHyun for crashes when tooltips->active_tips_data is NULL.Owen Taylor2002-10-311-1/+2
| | | | | | | | Thu Oct 31 17:41:12 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_update_screen): Fix from Nam SungHyun for crashes when tooltips->active_tips_data is NULL.
* Multihead safety fixes, handle displays being closed. (#81651, based onOwen Taylor2002-10-221-4/+60
| | | | | | | | | | | Tue Oct 22 16:37:12 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c: Multihead safety fixes, handle displays being closed. (#81651, based on patch from Erwann Chenede) * gtk/gtktoolbar.c (gtk_toolbar_init): Fix typo from the last commit.
* Make tooltip window not resizable. Fixes #95675.Soeren Sandmann2002-10-131-0/+1
| | | | | | | Sun Oct 13 20:20:51 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktooltips.c (gtk_tooltips_force_window): Make tooltip window not resizable. Fixes #95675.
* Deprecation cleanupManish Singh2002-10-091-43/+53
| | | | | | | Wed Oct 9 15:23:48 2002 Manish Singh <yosh@gimp.org> * gtk/gtkadjustment.[ch] gtk/gtkalignment.[ch] gtk/gtkentry.[ch] gtk/gtkhsv.[ch] gtk/gtktooltips.[ch]: Deprecation cleanup
* Disable tooltips for menu items with submenus .. they still don't reallyOwen Taylor2002-09-301-2/+3
| | | | | | | | | Sun Sep 29 20:20:26 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_event_handler): Disable tooltips for menu items with submenus .. they still don't really work properly. (Missed merge from stable)
* Set the private LEAVE_PENDING flag to fix problem where with menu itemsOwen Taylor2002-05-201-0/+4
| | | | | | | | | | | | | Mon May 20 12:59:14 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c: Set the private LEAVE_PENDING flag to fix problem where with menu items with submenus, tooltips were getting stuck. (Effectively disables tooltips for menu items with submenus.) (Bug #75961, Soeren Sandmann) * tests/testgtk.c: Set a tooltip on a menu item with a submenu.
* Special case menu items to pop down on motion. (#75961)Owen Taylor2002-05-151-19/+38
| | | | | | | | | | | | | | Wed May 15 17:12:50 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c: Special case menu items to pop down on motion. (#75961) * tests/testgtk.c (create_item_factory): Add tooltips to the File menu. * gtk/gtkentry.c (update_im_cursor_location): Fix cursor locations passed to the IM context. (#80027, Yao Zhang)
* Integrate Erwann Chenede's multihead changes for the gtk/ directory.Alex Larsson2002-04-291-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Set the keyboard-mode flag before popping up the tooltip so that pop it upOwen Taylor2002-02-261-2/+3
| | | | | | | | Mon Feb 25 18:59:27 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (start_keyboard_mode): Set the keyboard-mode flag before popping up the tooltip so that pop it up in the right place. (#71917, Narayani Pattipati)
* Only pop the tooltip down on a select set of events, not on any unknownOwen Taylor2002-02-141-8/+16
| | | | | | | | | | | Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_event_handler): Only pop the tooltip down on a select set of events, not on any unknown event. (#71157, Jody Goldberg) * gtk/gtktooltips.c (gtk_tooltips_event_handler): Fix some warnings.
* Implement Control-F1 as toggle-tooltips-mode.Owen Taylor2002-02-131-81/+151
| | | | | | | | | | Wed Feb 13 15:42:42 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1 as toggle-tooltips-mode. * gtk/gtktooltips.c: Remove parsing of tooltips style string from here ... now in gtkrc.c.
* don't reduce the scroll rect size by the scroll amountHans Breuer2002-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-10 Hans Breuer <hans@breuer.org> * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll rect size by the scroll amount * gdk/win32/gdkwindow-win32.c * gdk/win32/gdkselection-win32.c : added some casts to make it compile with msvc's strict type checking * gtk/fnmatch.c : #include <ctype.h> again for tolower prototype. The fnmatch() code assumes to be in the crt locale though it is feeded by utf8 strings from gtkfilesel.c * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by _CompletionDir instead of referencing already freed memory * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to gtk_rc_parse_string (theDefaultTooltipColor) once as it was intended * tests/makefile.msc : added more tests * tests/testgtk.c (create_list) : don't try to load gtkenums.h from the current directory use ../gtk/gtkenums.h instead
* Change show_help signal to return gboolean instead of void. This allowsPadraig O'Briain2002-02-071-2/+3
| | | | | | | | | | | * gtk/gtkwidget.[ch]: Change show_help signal to return gboolean instead of void. This allows the keypress which invokes the signal to be propagated to the focus widgets ancestors if not handled by the focus widget. * gtk/gtktoolips.[ch] Change _gtk_tooltips_show_tip () to return a gboolean indicating whether widget has tooltip to display.
* Parse the RC string here when the first object is created rather than inOwen Taylor2002-02-021-7/+13
| | | | | | | | | | | | | Fri Feb 1 23:25:33 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_init): Parse the RC string here when the first object is created rather than in the class_init to not break doc building. (#70341, Havoc Pennington.) * gtk/gtkrc.c (parse_include_file): Use the directories for the currently parsed files as the starting point to look for include files. (#59975)
* Fix use of ! in shell.Owen Taylor2002-02-021-0/+7
| | | | | | | | | | | Fri Feb 1 19:57:59 2002 Owen Taylor <otaylor@redhat.com> * configure.in: Fix use of ! in shell. * gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default: Move the setting of default tooltips colors to gtktooltips.c from gtkrc.default. (Use default priority so themes will override.) (#58542)
* gtk/gtktooltips.c tests/testtreesort.c inserted some casts to get rid ofSven Neumann2001-08-191-1/+1
| | | | | | | | | 2001-08-19 Sven Neumann <sven@gimp.org> * gtk/gtktooltips.c * tests/testtreesort.c * tests/treestoretest.c: inserted some casts to get rid of compiler warnings.
* gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips):Matthias Clasen2001-08-131-20/+35
| | | | Don't remove the tooltip window when the tip text changes. (#15891)
* Patch from Matthias Clasen to remove remove all instances ofOwen Taylor2001-07-181-2/+0
| | | | | | | | | Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/*.c: Patch from Matthias Clasen to remove remove all instances of g_return_if_fail (foo != NULL); that are immediately before a g_return_if_fail (GTK_IS_FOO (foo)); since the second check catches the NULL anyways.
* Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]Owen Taylor2001-07-121-4/+4
| | | | | | | | | | | | | Thu Jul 12 13:43:27 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c gtk/gtkfontsel.c gtk/gtkhandlebox.c gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c: Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
* Clip the retrieved image data to the screen, using a server grab to avoidHavoc Pennington2001-06-291-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-28 Havoc Pennington <hp@pobox.com> * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved image data to the screen, using a server grab to avoid race conditions. * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove check for NULL return from gtk_image_new_from_stock(), it never returns NULL. (gtk_item_factory_create_item): fix bug where we parsed the stock ID as an inline pixbuf * gtk/gtktext.c (gtk_text_key_press): numeric keypad support * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad support (should be using binding set here) * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad support (should be using binding set here) * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad support * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): keypad * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support * gtk/gtkcolorsel.c (palette_activate): keypad support (of course, should be binding-setted) * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes * gtk/gtkcalendar.c: numeric keypad fixes * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad support * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop screwup * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): clip the render area to the drawable's clip region in advance, so we don't get data from the server that we don't need. * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): check return value of gdk_pixbuf_get_from_drawable(), fall back to bilevel alpha if we can't get the pixbuf to composite against. * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap * gdk/gdkimage.c (gdk_image_get_colormap): add gdk_image_set_colormap, gdk_image_get_colormap * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to take a region of the image, instead of converting the entire image. * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help keybinding signal. Add default bindings for it. Add default handler for show_help that shows the tooltip for the widget. * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and "close" keybinding signal, remove key press handler. * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this, it's not our usual practice to leave a deprecated function around with a runtime warning, plus we don't want it to appear in docs, plus if we make them yellow no one will want to change them anyhow.
* Return FALSE, not TRUE. (Fixes #52925)Owen Taylor2001-04-181-1/+1
| | | | | | | Wed Apr 18 10:04:23 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE, not TRUE. (Fixes #52925)
* got rid of gtk_widget_popup(), a function that bad needs to be nuked, notTim Janik2001-04-011-1/+2
| | | | | | | | | | | | | | | | | Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org> * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that bad needs to be nuked, not just deprecated. * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use gtk_widget_popup(). * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g; * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated widget. * docs/Changes-2.0.txt: updates.