summaryrefslogtreecommitdiff
path: root/gtk/gtkscrolledwindow.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Use g_object_new instead of gtk_widget_newJohan Dahlin2008-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-19 Johan Dahlin <jdahlin@async.com.br> * demos/testpixbuf.c (new_testrgb_window): * gtk/gtkctree.c (gtk_ctree_new_with_titles): * gtk/gtkitemfactory.c (gtk_item_factory_construct), (gtk_item_factory_create_item): * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): * gtk/gtkprogressbar.c (gtk_progress_bar_new), (gtk_progress_bar_new_with_adjustment): * gtk/gtkscrolledwindow.c (gtk_scrolled_window_new): * gtk/gtktext.c (gtk_text_new): * gtk/gtkviewport.c (gtk_viewport_new): * tests/simple.c (main): * tests/testgtk.c (create_statusbar), (create_get_image), (create_saved_position), (create_tooltips), (create_cursors), (create_display_screen), (create_progress_bar), (create_idle_test): * tests/testmultidisplay.c (make_selection_dialog), (main): * tests/testmultiscreen.c (main): * tests/testrgb.c (new_testrgb_window): Use g_object_new instead of gtk_widget_new svn path=/trunk/; revision=20462
* gtk/gtkalignment.c gtk/gtkarrow.c gtk/gtkbbox.c gtk/gtkcalendar.c removeMichael Natterer2008-05-211-2/+1
| | | | | | | | | | | | | 2008-05-21 Michael Natterer <mitch@imendio.com> * gtk/gtkalignment.c * gtk/gtkarrow.c * gtk/gtkbbox.c * gtk/gtkcalendar.c * gtk/gtkscrolledwindow.c: remove PROP_LAST enum values. svn path=/trunk/; revision=20121
* gtk/gtkcellview.c gtk/gtklabel.c gtk/gtklayout.c gtk/gtklist.cMichael Natterer2008-02-071-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* gtk/gtkwidget.c gtk/gtkscrolledwindow.c Correct documentation that refersCody Russell2007-08-141-2/+2
| | | | | | | | | | | | | 2007-08-14 Cody Russell <bratsche@gnome.org> * gtk/gtkwidget.c * gtk/gtkscrolledwindow.c * gtk/gtklabel.c: Correct documentation that refers to the deprecated gtk_widget_set_usize() API. Refer instead to gtk_widget_set_size_request(). (#459340, Guillaume Cottenceau) svn path=/trunk/; revision=18613
* Correctly redraw when gtk-scrolled-window-placement is changed after theRoss Burton2007-07-221-1/+1
| | | | | | | | | | 2007-07-22 Ross Burton <ross@openedhand.com> * gtk/gtkscrolledwindow.c: Correctly redraw when gtk-scrolled-window-placement is changed after the widget is realised (#458102) svn path=/trunk/; revision=18523
* Update docs Deprecate gtk_widget_{ref,unref}Matthias Clasen2007-06-101-0/+5
| | | | | | | | | | | | | | | | | | | | 2007-06-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwidget.c: * gtk/gtkscrolledwindow.c: Update docs * gtk/gtkwidget.h: Deprecate gtk_widget_{ref,unref} * gtk/tmpl/gtkbindings.sgml: * gtk/tmpl/gtkrc.sgml: * gtk/tmpl/gtkwidget.sgml: * gtk/tmpl/gtkrecentmanager.sgml: * gtk/*.sgml: * gtk/tmpl/gtkstock.sgml: * gtk/gtk-sections.txt: Updates svn path=/trunk/; revision=18090
* Fix shadow painting if the scrollbars-within-bevel style property is setBenjamin Berg2007-06-081-25/+15
| | | | | | | | | | 2007-06-08 Benjamin Berg <benjamin@sipsolutions.net> * gtk/gtkscrolledwindow.c: (gtk_scrolled_window_paint): Fix shadow painting if the scrollbars-within-bevel style property is set and border_width is nozero. (#445054) svn path=/trunk/; revision=18082
* Document scrollbars-within-bevel as 2.12 addition. (#438131, MartMatthias Clasen2007-05-141-0/+7
| | | | | | | | | | | 2007-05-14 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.c: Document scrollbars-within-bevel as 2.12 addition. (#438131, Mart Raudsepp) svn path=/trunk/; revision=17839
* Correct a confusing warning. (#437284, Björn Lindqvist)Matthias Clasen2007-05-101-1/+1
| | | | | | | | | | 2007-05-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_child): Correct a confusing warning. (#437284, Björn Lindqvist) svn path=/trunk/; revision=17815
* Improve look of GtkScrolledWindow on Windows by implementing aMathias Hasselmann2007-03-081-5/+64
| | | | | | | | | 2007-03-08 Mathias Hasselmann <mathias.hasselmann@gmx.de> * gtk/gtkscrolledindow.c: Improve look of GtkScrolledWindow on Windows by implementing a scrollbars-within-bevel style property. (#168326) svn path=/trunk/; revision=17425
* Only handle key bindings for scrolling if the scrollbars are visible.Matthias Clasen2007-01-021-5/+13
| | | | | | | | | | | | | 2007-01-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c: Only handle key bindings for scrolling if the scrollbars are visible. (#340135, Christian Persch) svn path=/trunk/; revision=17012
* Fixed a bug in set_property() (setting "window-placement-set" could resultTristan Van Berkom2006-12-161-1/+1
| | | | | | * gtk/gtkscrolledwindow.c: Fixed a bug in set_property() (setting "window-placement-set" could result in a crash because of boolean/enum mixup)
* 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)
* always update the bin_window position and size in size_allocate, even ifTim Janik2006-09-201-1/+5
| | | | | | | | | | | Wed Sep 20 16:59:38 2006 Tim Janik <timj@imendio.com> * gtk/gtkviewport.c: always update the bin_window position and size in size_allocate, even if we don't have a visible child. this fixes expose artefacts as described in #313508. * gtk/gtkscrolledwindow.c: make hiding of automatic scrollbars when we have no visible child explicit.
* Fix some typos with inline property docs. (#347065, John Finlay)Matthias Clasen2006-07-101-2/+2
| | | | | | | | | | | | 2006-07-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkaction.c: * gtk/gtkiconview.c: * gtk/gtkprintbackend.c: * gtk/gtkprintoperation-unix.c: * gtk/gtkscrolledwindow.c: * gtk/gtktoolbar.c: Fix some typos with inline property docs. (#347065, John Finlay)
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-38/+6
|
* Add a window-placement-set property and a gtk-scrolled-window-placementMatthias Clasen2006-03-201-22/+230
| | | | | | | | | | 2006-03-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c: Add a window-placement-set property and a gtk-scrolled-window-placement setting. (#157025, Christian Neumair)
* Intern some more strings.Matthias Clasen2005-09-011-3/+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.
* Change the return type to GtkWidget*, proposed by Owen Taylor.Matthias Clasen2005-05-081-2/+2
| | | | | | | | | 2005-05-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar): (gtk_scrolled_window_get_cscrollbar): Change the return type to GtkWidget*, proposed by Owen Taylor.
* Add getters for the scrollbars. (#167181, Billy Biggs)Matthias Clasen2005-05-031-0/+38
| | | | | | | | | 2005-05-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.h: * gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar): * gtk/gtk.symbols: Add getters for the scrollbars. (#167181, Billy Biggs)
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-5/+5
| | | | | | | | 2005-03-26 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/gdkdisplaymanager.c: Use canonical names for g_object_notify() as well.
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-7/+8
| | | | | | | | | | | | 2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
* 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.
* xMatthias Clasen2005-03-091-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): * gtk/gtkrange.c (gtk_range_class_init): * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): * gtk/gtktexttag.c (gtk_text_tag_class_init): * gtk/gtktextview.c (gtk_text_view_class_init): * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): * gtk/gtknotebook.c (gtk_notebook_class_init): * gtk/gtkentry.c (gtk_entry_class_init): * gtk/gtkexpander.c (gtk_expander_class_init): * gtk/gtkarrow.c (gtk_arrow_class_init): * gtk/gtkalignment.c (gtk_alignment_class_init): * gtk/gtkbutton.c (gtk_button_class_init): * gtk/gtklabel.c (gtk_label_class_init): * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): * gtk/gtktreeview.c (gtk_tree_view_class_init): * gtk/gtkbox.c (gtk_box_class_init): * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): * gtk/gtkcontainer.c (gtk_container_class_init): * gtk/gtkwidget.c (gtk_widget_class_init): * gtk/gtkobject.c (gtk_object_class_init): Use canonical names when registering param specs.
* 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
* 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>
* New internal function returning a good step value for the mouse wheel. ForSoeren Sandmann2004-02-291-6/+5
| | | | | | | | | | | | | | | | Sun Feb 29 19:04:33 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal function returning a good step value for the mouse wheel. For scrollbars, base the step on page_size^(2/3), for other ranges, use 2 * step_increment. * gtk/gtkrange.c (gtk_range_scroll_event): Use it here ... * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): ... and here. * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
* The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog andMatthias Clasen2004-01-161-14/+14
| | | | | | | | | | | | | | | | | | | | Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de> The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and po/ChangeLog): * gtk/gtkintl.h: * gdk-pixbuf/gdk-pixbuf-i18n.h: * gdk/gdkintl.h: Define P_() for property blurbs and nicks. * gdk/gdkdisplaymanager.c: * gdk-pixbuf/gdk-pixbuf.c: * modules/input/gtkimcontextxim.c: * gtk/*.c: Mark property blurbs and nicks with P_(). * po/Makefile.in.in: Add --keyword=P_ to the xgettext invocation, since property blurbs and nicks are now marked with P_().
* Implement RTL flipping for GtkViewport: Adjust the "gravity" when resizingMatthias Clasen2003-12-051-4/+15
| | | | | | | | | | | | | | Sat Dec 6 00:23:46 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkviewport.c: Implement RTL flipping for GtkViewport: Adjust the "gravity" when resizing This is a bit flickery in RTL mode. (#107526) Sat Dec 6 00:22:14 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkscrolledwindow.c: Implement RTL flipping for GtkScrolledWindow: the vertical scrollbar shows up on the left side in RTL mode. (#107526)
* Replace uses of gtk_object_new by g_object_new.Matthias Clasen2003-02-281-2/+2
| | | | | | | | 2003-03-01 Matthias Clasen <maclas@gmx.de> * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): (gtk_scrolled_window_set_hadjustment): Replace uses of gtk_object_new by g_object_new.
* Add a scrollbar_spacing style property (#81396, based on a patch fromOwen Taylor2002-10-201-2/+21
| | | | | | | | Sun Oct 20 14:58:02 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): Add a scrollbar_spacing style property (#81396, based on a patch from Anders Carlsson)
* Privately export _gtk_scrolled_window_get_scrollbar_spacing().Owen Taylor2002-10-101-18/+38
| | | | | | | | | | | Thu Oct 10 14:35:31 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.[ch]: Privately export _gtk_scrolled_window_get_scrollbar_spacing(). * gtk/gtkcombo.c: Properly account from scrollbar spacing when computing the size of the popup window. (#84955, Marco Pesenti Gritti)
* Deprecation cleanupManish Singh2002-10-091-33/+36
| | | | | | | | Tue Oct 8 17:34:26 2002 Manish Singh <yosh@gimp.org> * gtk/gtkmain.c gtk/gtkscrolledwindow.[ch] gtk/gtksettings.c gtk/gtkstatusbar.[ch] gtk/gtkstyle.c gtk/gtktoolbar.[ch] gtk/gtkviewport.[ch] gtk/gtkwindow.[ch]: Deprecation cleanup
* Minor documentation fixesSoren Sandmann2002-08-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-10 Soren Sandmann <sandmann@daimi.au.dk> * docs/reference/gtk/tree_widget.sgml, docs/reference/gtk/tmpl/gtkdialog.sgml, docs/reference/gtk/tmpl/gtkentry.sgml, docs/reference/gtk/tmpl/gtkfilesel.sgml, docs/reference/gtk/tmpl/gtkfontsel.sgml, docs/reference/gtk/tmpl/gtkfontseldlg.sgml, docs/reference/gtk/tmpl/gtktreemodel.sgml, docs/reference/gtk/tmpl/gtkwidget.sgml, gdk/x11/gdkdisplay-x11.c, gtk/gtkbbox.c, gtk/gtkbox.c, gtk/gtkbutton.c, gtk/gtkcellrenderer.c, gtk/gtkcellrendererpixbuf.c, gtk/gtkcellrenderertext.c, gtk/gtkcheckmenuitem.c, gtk/gtkcontainer.c, gtk/gtkcurve.c, gtk/gtkdialog.h, gtk/gtkentry.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c, gtk/gtkframe.c, gtk/gtkhandlebox.c, gtk/gtkiconfactory.c, gtk/gtkimage.c, gtk/gtkinvisible.c, gtk/gtkitemfactory.c, gtk/gtklabel.c, gtk/gtklayout.c, gtk/gtkmenu.c, gtk/gtkprogress.c, gtk/gtkprogressbar.c, gtk/gtkscrolledwindow.c, gtk/gtksizegroup.c, gtk/gtktable.c, gtk/gtktextiter.c, gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktextview.c, gtk/gtktogglebutton.c, gtk/gtktoolbar.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c, gtk/gtktreestore.c, gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c, gtk/gtkviewport.c, gtk/gtkwidget.c, gtk/gtkwidget.h, gtk/gtkwindow.c: Minor documentation fixes (#89254, patch from Brett Nash; #85809, patch from daten@dnetc.org; #76391, patch from Ross Burton; #74559, Manuel Clos; #73569, #72005, Alexey A. Malyshev; #70061, patch from Dennis Bj"orklund; #64566, #63388, #58328, #57499, #81007, #77349, Vitaly Tishkov; #78932, Vitaly Tishkov, patch from Ross Burton; #73306)
* Require autoconf-2.52 explicitely, since otherwise Debian will process itOwen Taylor2002-05-221-2/+0
| | | | | | | | | | | | Wed May 22 16:12:38 2002 Owen Taylor <otaylor@redhat.com> * configure.in: Require autoconf-2.52 explicitely, since otherwise Debian will process it with 2.13 (ugh!). Wed May 22 12:29:20 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtkscrolledwindow.c (gtk_scrolled_window_init): remove GTK_RESIZE_QUEUE setting.
* Initialize the scrollbar spacing variable in the class to -1, and thenOwen Taylor2002-03-011-3/+5
| | | | | | | | | | Fri Mar 1 16:48:19 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing variable in the class to -1, and then take that to mean "default" (3) rather than putting 3 in the class directly. This gives us some wiggle room to make it a per-instance rather than a per-class property later.
* include gdkkeysysms.h if compiling gdk_keyval_convert_case.Owen Taylor2002-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Thu Feb 28 19:55:01 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeys.c: include gdkkeysysms.h if compiling gdk_keyval_convert_case. * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement <Control>Tab <Control><Shift>Tab to cycle between all menu bars in a toplevel once one is up. * tests/testgtk.c: Add a second menubar, this example is already full of crack anyways. * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd unhandled events up to the parent menu shell. * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only pop up the menu if the parent menu shell is still active. * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a old_focus argument, export privately.
* Switch control-home/end and home/end with the idea that scrolled windowsOwen Taylor2002-02-271-4/+4
| | | | | | | | | | Tue Feb 26 19:38:14 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): Switch control-home/end and home/end with the idea that scrolled windows more typically contain vertical sets of controls and to correspond to the bindings in GtkTreeView.
* Fix double set of bindings for page-up/down. (#72605, Tor Lillquist)Owen Taylor2002-02-261-5/+0
| | | | | | | | | | | Mon Feb 25 22:10:47 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): Fix double set of bindings for page-up/down. (#72605, Tor Lillquist) * gtk/gtkmenu.c (gtk_menu_key_press): Remove consumed modiifers when setting up accelerator to make accelerators look prettier. (#65416, Guillermo S. Romero)
* Implement "fuzzy" key binding lookups; allow matches on key and level butOwen Taylor2002-02-211-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Feb 20 14:26:47 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups; allow matches on key and level but not group. Also, implement ignoring "consumed modifiers correctly." * gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using GtkKeyHash. * gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in the group for key release events as well as key press events. * gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Rename unused_modifiers to consumed_modifiers, make the docs and non-Xkb implementation match the Xkb implementation. * gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate doc and parameter name changes. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): XkbTranslateKeyCode doesn't handle LockMask, we need to handle it ourselves. * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force <Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency to allow dealing with ISO_Left_Tab. * gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c gtk/gtkpaned.c gtk/gtkcombo.c gtk/gtknotebook.c: Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab or <Shift>Tab both are equivalent as a binding specifier.) * gtk/gtkbutton.c (gtk_button_class_init): Make ::activate GTK_RUN_ACTION, so you can bind an accelerator to it. * gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call gdk_unicode_to_keyval on the mnemonic character. * tests/testgtk.c: Add a test for the new fuzzy key binding matching.
* Select the right item in the family list. (Reported by Mark Patton, PatchOwen Taylor2002-02-181-2/+8
| | | | | | | | | | | | | | | | | | | | Mon Feb 18 18:27:45 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Select the right item in the family list. (Reported by Mark Patton, Patch from Satajyit Kanungo, #64240) * gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Update the size and face entry lists as well, fix memory leak. (Also #64240) * gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Allow fractional sizes, unselect the selected row if none matches. * gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): Fix a bug where the scrolled window would always get focus when focusing out of the child.
* Add key bindings on GtkScrolledWindow for arrow keys, PageUp/PageDownOwen Taylor2002-02-161-1/+256
| | | | | | | | | | | | | | | | | | | Fri Feb 15 20:09:45 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.[ch] gtk/gtkmarshallers.list: Add key bindings on GtkScrolledWindow for arrow keys, PageUp/PageDown Home/End to scroll the window. Bind Control-[Shift]-Tab to focus out of the scrolled window entirely. Allow the scrolled window to be focused if no child can be focused. (#63480) * gtk/gtkwidget.c (gtk_widget_hide): Remove the REALIZED() check - if we have visible but not mapped widgets (inside a unshown notebook tab, for instance), we need to track their size. (#65087, reported by Damon Chaplin.) * gtk/gtkcolorsel.c (palette_change_color): Shut up a warning.
* Add property support. (#51858)Owen Taylor2001-07-191-115/+160
| | | | | | | Thu Jul 19 15:35:32 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment): Add property support. (#51858)
* Enforce the widget/child realization/mapping invariants.Owen Taylor2001-07-191-55/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Sat Jul 7 02:50:14 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce the widget/child realization/mapping invariants. * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions gtk_widget_[get/set]_child_visible() to control whether visible children of a mapped window are mapped. * docs/widget_system.txt: Updated for changes in container contract, and addition of GTK_CHILD_VISIBLE. * gtk/gtkcontainer.c: Add generic map()/unmap() functions that work for almost all containers. * gtk/gtknotebook.c gtk/gtkpacker.c: Use gtk_widget_set_child_visible() where necessary. * gtk/*.c: Remove excess map(), unmap(), and realization/mapping invariant enforcing code from many containers.
* Patch from Matthias Clasen to remove remove all instances ofOwen Taylor2001-07-181-16/+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.
* Fix stupid error introduced last night that was making things decidedlyOwen Taylor2001-06-241-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error introduced last night that was making things decidedly not work. * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters so that we have getter/setter pairing everywhere it makes sense. (#55767) * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.: Rename gtk_radio_button_group to gtk_radio_button_get_group, add a deprecated compat macro. (#55516) * gtk/gtklabel.[ch]: Add functions gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(), gtk_label_set_label(), which mirror the property API for GtkLabel. Make gtk_label_get_attributes() only reflect the attributes set by gtk_label_set_attributes. * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename from gtk_notebook_set_page().
* don't propagate exposes to NULL child.Tim Janik2001-05-111-2/+5
| | | | | | | | | | | | | Fri May 11 02:53:57 2001 Tim Janik <timj@gtk.org> * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't propagate exposes to NULL child. * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard against not having one of the scrollbars. * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us, we don't keep a mnemonic window if we have no mnemonic installed.