summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a function to get the default window icon nameMatthias Clasen2009-02-201-1/+20
| | | | svn path=/trunk/; revision=22387
* Keep GtkPlug in sync with the global list of toplevels.Matthias Clasen2009-01-231-0/+35
| | | | | | | | | | | | | | | | | 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
* Don't cause lots of X traffic when the icon name doesn't actually change.Matthias Clasen2009-01-131-0/+3
| | | | | | | | | | * gtk/gtkwindow.c (gtk_window_set_icon_name): Don't cause lots of X traffic when the icon name doesn't actually change. Some apps like to reset their window icon frequently, without actually changing the icon name... svn path=/trunk/; revision=22103
* Doc additionsMatthias Clasen2008-12-291-0/+26
| | | | svn path=/trunk/; revision=21998
* Made buildable and added support for adding children of type "submenu"Tristan Van Berkom2008-11-061-2/+123
| | | | | | | | | | | | | | | | | | | | | * gtk/gtkmenuitem.c: Made buildable and added support for adding children of type "submenu" * gtk/gtkwindow.c: Added support for custom tag "accel-groups" to add GtkAccelGroups to the window. * gtk/gtkcontainer.c: Added builder contextual warnings in buildable_add_child() * gtk/tests/builder.c: Added tests for buildable menus (test that accelerators are properly connected on stock items, test the menu hierarchy, test permission to add alien/custom menuitem children). * docs/reference/gtk/tmpl/gtkbuilder.sgml, docs/reference/gtk/tmpl/gtkwindow.sgml, docs/reference/gtk/tmpl/gtkmenuitem.sgml: Updated docs for buildable submenus and accel groups. svn path=/trunk/; revision=21767
* Bug 552318 – menubar mnemonics consumed even whenMatthias Clasen2008-10-141-16/+22
| | | | | | | | | | | | | | 2008-10-13 Matthias Clasen <mclasen@redhat.com> Bug 552318 – menubar mnemonics consumed even when gtk-enable-mnemonics=false * gtk/gtkwindow.c (gtk_window_activate_key): Don't let mnemonic entries block accelerator activation when gtk-enable-mnemonics is FALSE. Problem reported by Andreas Moog. svn path=/trunk/; revision=21648
* gtk/gtkaccellabel.c gtk/gtkaction.c gtk/gtkclist.c gtk/gtkcolorbutton.cSven Neumann2008-08-121-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-12 Sven Neumann <sven@gimp.org> * gtk/gtkaccellabel.c * gtk/gtkaction.c * gtk/gtkclist.c * gtk/gtkcolorbutton.c * gtk/gtkctree.c * gtk/gtkdialog.c * gtk/gtkdnd-quartz.c * gtk/gtkdnd.c * gtk/gtkentry.c * gtk/gtkfilechooserdefault.c * gtk/gtkfilesel.c * gtk/gtkgamma.c * gtk/gtkiconview.c * gtk/gtkkeyhash.c * gtk/gtklabel.c * gtk/gtkmenu.c * gtk/gtkmenubar.c * gtk/gtkpaned.c * gtk/gtkrecentchooserdialog.c * gtk/gtkrecentchooserutils.c * gtk/gtkselection.c * gtk/gtksizegroup.c * gtk/gtktextbtree.c * gtk/gtktextbuffer.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtktreemodel.c * gtk/gtkuimanager.c * gtk/gtkwindow-decorate.c * gtk/gtkwindow.c: use canonical signal names in some more places that I missed earlier. Also changed this in the documentation and comments. svn path=/trunk/; revision=21094
* 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
* use canonical signal names.Sven Neumann2008-08-081-13/+13
| | | | | | | | | | 2008-08-08 Sven Neumann <sven@gimp.org> * gtk/gtkwidget.c: * gtk/gtkwindow.c: use canonical signal names. svn path=/trunk/; revision=21042
* gtk/gtk.symbols gtk/makegtkalias.pl gtk/gtkaccelmap.c gtk/gtkfilechooser.cTor Lillqvist2008-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | 2008-08-08 Tor Lillqvist <tml@novell.com> * gtk/gtk.symbols * gtk/makegtkalias.pl * gtk/gtkaccelmap.c * gtk/gtkfilechooser.c * gtk/gtkfilesel.c * gtk/gtkiconfactory.c * gtk/gtkicontheme.c * gtk/gtkimage.c * gtk/gtkrc.c * gtk/gtkuimanager.c * gtk/gtkwindow.c: No need for the DLL ABI backward compatibility functions on Win64. svn path=/trunk/; revision=21040
* Bug 544684 - Win64 issue, window handles are assumed to be 32-bitTor Lillqvist2008-08-041-3/+3
| | | | | | | | | | | | | | | | | | | | 2008-08-05 Tor Lillqvist <tml@novell.com> Bug 544684 - Win64 issue, window handles are assumed to be 32-bit * gtk/gtkwindow.h * gtk/gtkwindow.c: Change the type of the xid parameter of the internal gtk_window_remove_embedded_xid() and gtk_window_add_embedded_xid() functions from guint to GdkNativeWindow. * gtk/gtkwindow.c (send_client_message_to_embedded_windows): Instead of GPOINTER_TO_UINT(), just cast the gpointer to GdkNativeWindow. GPOINTER_TO_UINT() drops the upper 32 bits on Win64. svn path=/trunk/; revision=20992
* move the code of the deprecated gtk_window_set_policy() to a new privateMichael Natterer2008-08-041-9/+18
| | | | | | | | | | | | | | | 2008-08-04 Michael Natterer <mitch@imendio.com> * gtk/gtkwindow.c: move the code of the deprecated gtk_window_set_policy() to a new private function gtk_window_set_policy_internal() and call it from gtk_window_set_policy(). (gtk_window_set_resizable): use the new internal function in order to avoid our own deprecated public API. svn path=/trunk/; revision=20965
* Bug 65818 – rename gtk_window_set_default() and add getter for itMatthias Clasen2008-08-021-2/+2
| | | | svn path=/trunk/; revision=20931
* Bug 56070 – Can't click button after setting it sensitive.Cody Russell2008-08-011-5/+7
| | | | | | | | | | | | | | | | | | | | | 2008-07-31 Cody Russell <bratsche@gnome.org> Bug 56070 – Can't click button after setting it sensitive. * gtk/gtkwidget.[ch] * gtk/gtkwindow.c * gtk/gtkmain.c * gtk/gtkbutton.c * gtk/gtkprivate.h * gdk/gdkevents.h: Synthesize crossing events events where necessary. * gtk/tests/crossingevents.c: Add unit tests for crossing events. Big thanks to Ed Catmur, Matthias Clasen, and everyone else who has worked on and helped out with this. svn path=/trunk/; revision=20924
* 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
* Avoid unnecessary redraws when resizing. Patch by Owen TaylorMatthias Clasen2008-06-301-8/+8
| | | | | | | | * gtk/gtkwindow.c: Avoid unnecessary redraws when resizing. Patch by Owen Taylor svn path=/trunk/; revision=20705
* 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
* Add missing Since: gtk-doc markup for newly added GSEAL API. Change allJohan Dahlin2008-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* gtk/gtkwindow.[ch] rename gtk_window_group_get_windows() toMichael Natterer2008-06-201-2/+2
| | | | | | | | | | | 2008-06-20 Michael Natterer <mitch@imendio.com> * gtk/gtkwindow.[ch] * gtk/gtk.symbols: rename gtk_window_group_get_windows() to gtk_window_group_list_windows(). svn path=/trunk/; revision=20635
* Add gtk_window_group_get_windows().Tim Janik2008-06-201-0/+31
| | | | | | | * gtk/gtk.symbols: * gtk/gtkwindow.[ch] (gtk_window_group_get_windows): New function. svn path=/trunk/; revision=20632
* Add gtk_window_get_default()Tim Janik2008-06-201-0/+19
| | | | | | | * gtk/gtkwindow.[ch]: Add gtk_window_get_default(). * gtk/gtk.symbols: same here. svn path=/trunk/; revision=20536
* Fix trivial typo in documentation.Ross Burton2008-06-061-2/+2
| | | | | | | | | 2008-06-06 Ross Burton <ross@burtonini.com> * gtk/gtkwindow.c: Fix trivial typo in documentation. svn path=/trunk/; revision=20323
* Chain up in buildable_finish()Tristan Van Berkom2008-04-161-0/+2
| | | | | | | | | | | | | | * gtk/gtkwindow.c: Chain up in buildable_finish() * gtk/gtkbuilder.c: _gtk_builder_get_absolute_filename() handle cases where g_path_get_dirname() returns "." * docs/reference/gtk/tmpl/gtklabel.sgml, docs/reference/gtk/tmpl/gtkbuilder.sgml: Added documentation for the <attributes> tags on GtkLabel svn path=/trunk/; revision=20008
* Bug 314084 - GTK+ dialogs should not be placed partially offscreenTor Lillqvist2008-03-201-14/+27
| | | | | | | | | | | | | | 2008-03-20 Tor Lillqvist <tml@novell.com> Bug 314084 - GTK+ dialogs should not be placed partially offscreen * gtk/gtkwindow.c (clamp): New function. Clamps a window position in one dimension, or centered in case it doesn't fit. (clamp_window_to_rectangle): Simplify. Call clamp() for x and y dimensions. svn path=/trunk/; revision=19907
* Unify the handling of various "Enter" keysyms all over the place.Matthias Clasen2008-02-121-2/+3
| | | | | | | | | | | 2008-02-12 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Unify the handling of various "Enter" keysyms all over the place. (#515047, Christian Persch) svn path=/trunk/; revision=19528
* simply use gtk_window_get_key_hash() to get the hash instead of manuallyMichael Natterer2008-02-121-8/+7
| | | | | | | | | | | | 2008-02-12 Michael Natterer <mitch@imendio.com> * gtk/gtkwindow.c (gtk_window_activate_key): simply use gtk_window_get_key_hash() to get the hash instead of manually fiddling with quarks and gtk_window_keys_changed(). Also add g_return_if_fail() to this public function. svn path=/trunk/; revision=19521
* Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently. Fixes #5075Johan Dahlin2008-01-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtkcellrenderercombo.c: (gtk_cell_renderer_combo_get_property), (gtk_cell_renderer_combo_set_property): * gtk/gtkcombobox.c: (gtk_combo_box_set_property): * gtk/gtkcomboboxentry.c: (gtk_combo_box_entry_set_property): * gtk/gtknotebook.c: (gtk_notebook_set_property): * gtk/gtkspinbutton.c: (gtk_spin_button_set_property): * gtk/gtktextbuffer.c: (gtk_text_buffer_set_property), (gtk_text_buffer_get_property): * gtk/gtktextview.c: (gtk_text_view_set_property): * gtk/gtktogglebutton.c: (gtk_toggle_button_set_property): * gtk/gtktoolbutton.c: (gtk_tool_button_set_property), (gtk_tool_button_get_property): * gtk/gtktoolitem.c: (gtk_tool_item_set_property), (gtk_tool_item_get_property): * gtk/gtktreeview.c: (gtk_tree_view_set_property): * gtk/gtkwidget.c: (gtk_widget_set_property): * gtk/gtkwindow.c: (gtk_window_set_property): Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently. Fixes #5075 svn path=/trunk/; revision=19311
* Zero some variables to silence valgrind. (#495124, Morten Welinder)Matthias Clasen2007-11-271-0/+2
| | | | | | | | | | 2007-11-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c (gtk_window_move_resize): Zero some variables to silence valgrind. (#495124, Morten Welinder) svn path=/trunk/; revision=19077
* Require gtk-doc 1.8Matthias Clasen2007-11-251-8/+7
| | | | | | | | | | | 2007-11-25 Matthias Clasen <mclasen@redhat.com> * configure.in: Require gtk-doc 1.8 * */*.c: Use gtk-doc abbreviations for examples in docs. svn path=/trunk/; revision=19041
* Fixes #426246.Kristian Rietveld2007-09-121-23/+45
| | | | | | | | | | | | | | | | | | | | | | | 2007-09-12 Kristian Rietveld <kris@imendio.com> Fixes #426246. * gdk/gdk.symbols: * gdk/gdkwindow.[ch] (gdk_window_freeze_toplevel_updates_libgtk_only), (gdk_window_thaw_toplevel_updates_libgtk_only): new functions to freeze a toplevel window and all its descendants. To be made public in 2.14, (gdk_window_schedule_update): return if toplevel is frozen, (gdk_window_process_all_updates): defer processing updates if toplevel is frozen. * gtk/gtkwindow.c (gtk_window_configure_event): directly size allocate for override redirect windows, freeze toplevel and descendants otherwise and wait until resizing is done. svn path=/trunk/; revision=18802
* Update menu accelerators, when adding/removing AccelGroups dynamically.Stefan Kost2007-08-271-0/+2
| | | | | | | | * gtk/gtkwindow.c: Update menu accelerators, when adding/removing AccelGroups dynamically. (#469374) svn path=/trunk/; revision=18691
* Use the correct type check on `window'. We now check GTK_IS_WINDOW ratherCody Russell2007-08-231-1/+1
| | | | | | | | | | 2007-08-23 Cody Russell <bratsche@gnome.org> * gtk/gtkwindow.c (gtk_window_group_remove_window: Use the correct type check on `window'. We now check GTK_IS_WINDOW rather than GTK_IS_WIDGET. (#461483, Josselin Mouette) svn path=/trunk/; revision=18681
* Rename buildable methods to not clash with widget methods. (#448928,Johan Dahlin2007-06-191-10/+10
| | | | | | | | | | 2007-06-19 Johan Dahlin <jdahlin@async.com.br> * gtk/*: Rename buildable methods to not clash with widget methods. (#448928, Torsten Schoenfeld) svn path=/trunk/; revision=18187
* Add GtkBuilder, fixes #172535Johan Dahlin2007-06-151-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-15 Johan Dahlin <jdahlin@async.com.br> * demos/gtk-demo/Makefile.am: * demos/gtk-demo/builder.c: (quit_activate), (about_activate), (do_builder): * demos/gtk-demo/demo.ui: * docs/reference/gtk/gtk-docs.sgml: * docs/reference/gtk/gtk-sections.txt: * docs/reference/gtk/gtk.types: * docs/reference/gtk/tmpl/gtkbuildable.sgml: * docs/reference/gtk/tmpl/gtkbuilder.sgml: * gtk/Makefile.am: * gtk/gtk.h: * gtk/gtk.symbols: * gtk/gtkaction.c: (gtk_action_buildable_init), (gtk_action_buildable_set_name), (gtk_action_buildable_get_name): * gtk/gtkactiongroup.c: (gtk_action_group_get_type), (gtk_action_group_buildable_init), (gtk_action_group_buildable_add), (gtk_action_group_buildable_set_name), (gtk_action_group_buildable_get_name): * gtk/gtkbuildable.c: (gtk_buildable_get_type), (gtk_buildable_set_name), (gtk_buildable_get_name), (gtk_buildable_add), (gtk_buildable_set_property), (gtk_buildable_parser_finished), (gtk_buildable_construct_child), (gtk_buildable_custom_tag_start), (gtk_buildable_custom_tag_end), (gtk_buildable_custom_finished), (gtk_buildable_get_internal_child): * gtk/gtkbuildable.h: * gtk/gtkbuilder.c: (gtk_builder_class_init), (gtk_builder_init), (gtk_builder_finalize), (gtk_builder_set_property), (gtk_builder_get_property), (_gtk_builder_resolve_type_lazily), (gtk_builder_real_get_type_from_name), (gtk_builder_get_parameters), (gtk_builder_get_internal_child), (_gtk_builder_construct), (_gtk_builder_add), (apply_delayed_properties), (_gtk_builder_finish), (gtk_builder_new), (gtk_builder_add_from_file), (gtk_builder_add_from_string), (gtk_builder_get_object), (object_add_to_list), (gtk_builder_get_objects), (gtk_builder_set_translation_domain), (gtk_builder_get_translation_domain), (gtk_builder_connect_signals_default), (gtk_builder_connect_signals), (gtk_builder_connect_signals_full), (gtk_builder_value_from_string), (gtk_builder_value_from_string_type), (_gtk_builder_enum_from_string), (_gtk_builder_flags_from_string), (gtk_builder_get_type_from_name), (gtk_builder_error_quark): * gtk/gtkbuilder.h: * gtk/gtkbuilderparser.c: (state_push), (state_peek), (state_pop), (error_missing_attribute), (error_invalid_attribute), (error_invalid_tag), (builder_construct), (parse_object), (free_object_info), (_get_type_by_symbol), (parse_child), (free_child_info), (parse_property), (free_property_info), (parse_signal), (_free_signal_info), (parse_interface), (create_subparser), (free_subparser), (subparser_start), (subparser_end), (parse_custom), (start_element), (end_element), (text), (_gtk_builder_parser_parse_buffer): * gtk/gtkbuilderprivate.h: * gtk/gtkcelllayout.c: (attributes_start_element), (attributes_text_element), (_gtk_cell_layout_buildable_custom_tag_start), (_gtk_cell_layout_buildable_custom_tag_end), (_gtk_cell_layout_buildable_add): * gtk/gtkcelllayout.h: * gtk/gtkcellview.c: (gtk_cell_view_buildable_init), (gtk_cell_view_buildable_custom_tag_start), (gtk_cell_view_buildable_custom_tag_end): * gtk/gtkcolorseldialog.c: (gtk_color_selection_dialog_buildable_interface_init), (gtk_color_selection_dialog_buildable_get_internal_child): * gtk/gtkcombobox.c: (gtk_combo_box_buildable_init), (gtk_combo_box_buildable_custom_tag_start), (gtk_combo_box_buildable_custom_tag_end): * gtk/gtkcomboboxentry.c: (gtk_combo_box_entry_buildable_interface_init), (gtk_combo_box_entry_buildable_get_internal_child): * gtk/gtkcontainer.c: (gtk_container_get_type), (gtk_container_buildable_init), (gtk_container_buildable_add), (gtk_container_buildable_set_child_property), (attributes_start_element), (attributes_text_element), (gtk_container_buildable_custom_tag_start), (gtk_container_buildable_custom_tag_end): * gtk/gtkdebug.h: * gtk/gtkdialog.c: (gtk_dialog_buildable_interface_init), (gtk_dialog_buildable_get_internal_child), (attributes_start_element), (attributes_text_element), (gtk_dialog_buildable_custom_tag_start), (gtk_dialog_buildable_custom_finished): * gtk/gtkentrycompletion.c: (gtk_entry_completion_buildable_init): * gtk/gtkexpander.c: (gtk_expander_buildable_add), (gtk_expander_buildable_init): * gtk/gtkfontsel.c: (gtk_font_selection_dialog_buildable_interface_init), (gtk_font_selection_dialog_buildable_get_internal_child): * gtk/gtkframe.c: (gtk_frame_buildable_init), (gtk_frame_buildable_add): * gtk/gtkiconview.c: (gtk_icon_view_buildable_init), (gtk_icon_view_buildable_custom_tag_start), (gtk_icon_view_buildable_custom_tag_end): * gtk/gtkliststore.c: (gtk_list_store_buildable_init), (list_store_start_element), (list_store_end_element), (list_store_text), (gtk_list_store_buildable_custom_tag_start), (gtk_list_store_buildable_custom_tag_end): * gtk/gtkmain.c: * gtk/gtknotebook.c: (gtk_notebook_buildable_init), (gtk_notebook_buildable_add): * gtk/gtksizegroup.c: (gtk_size_group_buildable_init), (size_group_start_element), (gtk_size_group_buildable_custom_tag_start), (gtk_size_group_buildable_custom_finished): * gtk/gtktreestore.c: (gtk_tree_store_buildable_init), (tree_model_start_element), (gtk_tree_store_buildable_custom_tag_start), (gtk_tree_store_buildable_custom_finished): * gtk/gtktreeview.c: (gtk_tree_view_buildable_init), (gtk_tree_view_buildable_add): * gtk/gtktreeviewcolumn.c: (gtk_tree_view_column_buildable_init): * gtk/gtkuimanager.c: (gtk_ui_manager_buildable_init), (gtk_ui_manager_buildable_add), (gtk_ui_manager_buildable_construct_child), (gtk_ui_manager_buildable_custom_tag_start), (gtk_ui_manager_buildable_custom_tag_end): * gtk/gtkwidget.c: (gtk_widget_get_type), (gtk_widget_buildable_interface_init), (gtk_widget_buildable_set_name), (gtk_widget_buildable_get_name), (gtk_widget_buildable_set_property), (gtk_widget_buildable_parser_finshed), (accel_group_start_element), (gtk_widget_buildable_custom_tag_start), (gtk_widget_buildable_custom_finshed): * gtk/gtkwindow.c: (gtk_window_buildable_interface_init), (gtk_window_buildable_set_property), (gtk_window_buildable_parser_finished): * tests/Makefile.am: * tests/buildertest.c: (builder_new_from_string), (test_parser), (signal_normal), (signal_after), (signal_object), (signal_object_after), (signal_first), (signal_second), (signal_extra), (signal_extra2), (test_connect_signals), (test_uimanager_simple), (test_domain), (test_translation), (test_sizegroup), (test_list_store), (test_tree_store), (test_types), (test_spin_button), (test_notebook), (test_construct_only_property), (test_children), (test_child_properties), (test_treeview_column), (test_icon_view), (test_combo_box), (test_combo_box_entry), (test_cell_view), (test_dialog), (test_accelerators), (test_widget), (main): Add GtkBuilder, fixes #172535 svn path=/trunk/; revision=18141
* Move "move-focus" signals from several widgets to GtkWidget to enable moreMichael Natterer2007-06-041-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | 2007-06-04 Michael Natterer <mitch@imendio.com> Move "move-focus" signals from several widgets to GtkWidget to enable more flexible costomization of keyboard navigation via bindings. Fixes bug #414947. * gtk/gtkwidget.c: add "move-focus" binding signal, default to calling the toplevel GtkWindow's "move-focus" vfunc. * gtk/gtktextview.[ch] * gtk/gtkwindow.[ch]: remove "move-focus" signals and add compat code that makes sure that both emitting the signal on the widget and overriding the virtual functions keeps working as before. * gtk/gtktoolbar.c: remove "move-focus" signal here too and use GtkWidget's signal. This change slightly changes keyboard navigation in toolbars. I'll fix the behavior if somebody can explain me if and how exactly the new behavior is broken. svn path=/trunk/; revision=18025
* Fix a typoMatthias Clasen2007-05-181-3/+2
| | | | svn path=/trunk/; revision=17864
* Add functionality to set overall opacity of a top-level window. (#405316)Tor Lillqvist2007-04-301-0/+97
| | | | | | | | | | | | | | | | | | | | | | | 2007-04-30 Tor Lillqvist <tml@novell.com> Add functionality to set overall opacity of a top-level window. (#405316) * gtk/gtk.symbols: Add gtk_window_set_opacity and gtk_window_get_opacity. * gtk/gtkwindow.c (struct _GtkWindowPrivate, (gtk_window_class_init): Add opacity property, a double in the range [0, 1]. (gtk_window_set_opacity, gtk_window_get_opacity): Implement. (gtk_window_realize): If opacity is set, call gdk_window_set_opacity(). * gtk/gtkwindow.h: Declare gtk_window_set_opacity() and gtk_window_get_opacity(). svn path=/trunk/; revision=17731
* Win32 drop shadow goodnessCody Russell2007-04-251-3/+2
| | | | svn path=/trunk/; revision=17643
* Apply patch by Vytautas Liuolia for changing the startup notification idEmmanuele Bassi2007-03-131-5/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-03-13 Emmanuele Bassi <ebassi@gnome.org> Apply patch by Vytautas Liuolia for changing the startup notification id on a window in the X11 backend. (#347375) * gdk/gdk.h: * gdk/gdkx.h: * gdk/x11/gdkdisplay-x11.c: Add gdk_notify_startup_complete_wit_id() and gdk_x11_display_get_startup_notification_id(). * gdk/gdkwindow.h: * gdk/x11/gdkwindow-x11.c: Add gdk_window_set_startup_id(). * gtk/gtkwindow.h: * gtk/gtkwindow.c: Add gtk_window_set_startup_id(), used to change the startup notification id. (gtk_window_class_init), (gtk_window_init), (gtk_window_set_property): Add write-only "startup-id" property to GtkWindow. (gtk_window_realize): Set the startup notification id on a GtkWindow if it's valid. (gtk_window_map): If we have another valid startup notification id then finish the notification process. svn path=/trunk/; revision=17508
* add new boolean settings gtk-enable-accels and gtk-enable-mnemonics whichMichael Natterer2007-02-051-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | 2007-02-05 Michael Natterer <mitch@imendio.com> * gtk/gtksettings.c: add new boolean settings gtk-enable-accels and gtk-enable-mnemonics which enable/disable accelerators and mnemonics (bug #72375, based on a patch from Tommi Komulainen). * gtk/gtkwindow.c (gtk_window_activate_key) * gtk/gtkmenushell.c (gtk_menu_shell_key_press): don't invoke them if the resp. setting is FALSE. * gtk/gtkaccellabel.c (gtk_accel_label_refetch) * gtk/gtklabel.c (gtk_label_set_pattern_internal): don't display them if the setting is FALSE. * gtk/gtklabel.c: added signal connection to the screen's settings object and traverse all widgets on the screen when the setting changes. It's slightly ugly to also update GtkAccelLabels here, but less ugly than connecting and traversing all widgets twice. svn path=/trunk/; revision=17262
* chain up to the right function (fix taken from maemo-gtk).Michael Natterer2007-01-051-1/+1
| | | | | | | | | | 2007-01-05 Michael Natterer <mitch@imendio.com> * gtk/gtkwindow.c (gtk_window_key_release_event): chain up to the right function (fix taken from maemo-gtk). svn path=/trunk/; revision=17078
* Only process updates on the window at hand, not on all windows, to avoidMatthias Clasen2007-01-031-1/+1
| | | | | | | | | | | | 2007-01-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c (gtk_window_move_resize): Only process updates on the window at hand, not on all windows, to avoid violating resize/redraw ordering constraints. (#362406, Owen Taylor) svn path=/trunk/; revision=17028
* Correctly handle min size. (#320465, Philipp Langdale)Matthias Clasen2006-12-311-5/+7
| | | | | | | | | | | 2006-12-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c (gtk_window_compute_configure_request_size): Correctly handle min size. (#320465, Philipp Langdale) svn path=/trunk/; revision=16986
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-3/+1
| | | | | | | 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 patch by Behdad Esfahbod to reduce relocations. (#359053)Matthias Clasen2006-10-031-1/+1
| | | | | | | 2006-10-03 Matthias Clasen <mclasen@redhat.com> * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)
* Fix some assignments involving booleans. (#346467, Christian Persch)Matthias Clasen2006-07-051-7/+7
| | | | | | | | 2006-07-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c (gtk_window_unmap, gtk_window_set_keep_above) (gtk_window_set_keep_below): Fix some assignments involving booleans. (#346467, Christian Persch)
* doc improvementMatthias Clasen2006-06-191-3/+3
|
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Better handling of the window group on unsetting transient-for, since theAlexander Larsson2006-05-121-4/+13
| | | | | | | | | | | | | | | | | 2006-05-12 Alexander Larsson <alexl@redhat.com> * gtk/gtkwindow.c: Better handling of the window group on unsetting transient-for, since the transient parent might have changed group. * gtk/gtkmenu.c: Combine the handling of transient for the attach-widget and the window group handling by setting transient-to on popup/popdown only. See bug #340401 * gtk/gtkprintunixdialog.c: Remove part of old fix no longer needed.