summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* gtk/gtktextchild.c use G_STRLOC instead of G_GNUC_FUNCTION (which isMichael Natterer2008-01-282-15/+17
| | | | | | | | | | | 2008-01-28 Michael Natterer <mitch@imendio.com> * gtk/gtktextchild.c * gtk/gtktextview.c: use G_STRLOC instead of G_GNUC_FUNCTION (which is deprecated now). svn path=/trunk/; revision=19416
* Restore accidentally removed unsetting of GTK_MODULES.Johan Dahlin2008-01-251-0/+1
| | | | | | | | | | 2008-01-25 Johan Dahlin <johan@gnome.org> * gtk/gtktestutils.c (gtk_test_init): Restore accidentally removed unsetting of GTK_MODULES. svn path=/trunk/; revision=19406
* Handle the case where there is no child text node. (GtkBuilderConverter):Johan Dahlin2008-01-251-16/+23
| | | | | | | | | | | | 2008-01-25 Johan Dahlin <johan@gnome.org> * gtk/gtk-builder-convert (GtkBuilderConverter._convert_adjustment): Handle the case where there is no child text node. (GtkBuilderConverter): Allow xml comments in most places. svn path=/trunk/; revision=19405
* Remove the items even if there are no items set.Johan Dahlin2008-01-251-3/+5
| | | | | | | | | | | | | | | 2008-01-25 Johan Dahlin <johan@gnome.org> * gtk/gtk-builder-convert (GtkBuilderConverter._convert_combobox_items): Remove the items even if there are no items set. (GtkBuilderConverter._add_action_from_menuitem): Convert toggled signals and tooltips for all menu items subclasses and GtkImageMenuItem:label. Makes it possible to fully convert and run Jokosher.glade. svn path=/trunk/; revision=19404
* Implement accessible support, fixes #454653.Johan Dahlin2008-01-253-56/+343
| | | | | | | | | | | | | | | | | | | | | | 2008-01-25 Johan Dahlin <johan@gnome.org> * gtk/gtkwidget.c: (gtk_widget_buildable_interface_init), (gtk_widget_buildable_get_internal_child), (free_action), (free_relation), (gtk_widget_buildable_parser_finished), (accessibility_start_element), (gtk_widget_buildable_custom_tag_start), (gtk_widget_buildable_custom_finished): Implement accessible support, fixes #454653. * gtk/gtk-builder-convert: Add support for migrating old glade files * tests/buildertest.c: (test_widget), (test_file): Add accessible tests and improve the test_file function to display toplevels and run dialogs. svn path=/trunk/; revision=19403
* gtk/gtkbutton.h gtk/gtkcellrenderer.h gtk/gtkimcontext.h gtk/gtkstyle.hMichael Natterer2008-01-2518-825/+862
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-25 Michael Natterer <mitch@imendio.com> * gtk/gtkbutton.h * gtk/gtkcellrenderer.h * gtk/gtkimcontext.h * gtk/gtkstyle.h * gtk/gtktoolbar.h * gtk/gtktooltip.h * gtk/gtktreeprivate.h * gtk/gtktreeviewcolumn.h * gtk/gtkwidget.h: add const to constant structs which are passed into GTK+. Also add some forgotten const for const strings. * gtk/gtkbutton.c * gtk/gtkcellrenderer.c * gtk/gtkimcontext.c * gtk/gtkstyle.c * gtk/gtktoolbar.c * gtk/gtktooltip.c * gtk/gtktreeview.c * gtk/gtktreeviewcolumn.c * gtk/gtkwidget.c: changed accordingly. svn path=/trunk/; revision=19399
* Reviewed by Johan Dahlin.Sven Herzberg2008-01-251-0/+2
| | | | | | | | | | | | 2008-01-25 Sven Herzberg <sven@imendio.com> Reviewed by Johan Dahlin. * gtk/gtkuimanager.c (gtk_ui_manager_remove_ui): emit a warning if this is called with something that's not a GtkUIManager svn path=/trunk/; revision=19395
* Chain up to parent, so widgets can have internal children.Johan Dahlin2008-01-241-1/+3
| | | | | | | | | | 2008-01-24 Johan Dahlin <johan@gnome.org> * gtk/gtkdialog.c (gtk_dialog_buildable_get_internal_child): Chain up to parent, so widgets can have internal children. svn path=/trunk/; revision=19394
* Use pango_layout_set_height() for calendar details (#506049).Mathias Hasselmann2008-01-221-26/+8
| | | | | | | * configure.in: Require 1.19.3 for pango_layout_set_height(). * gtk/gtkcalendar.c: Use pango_layout_set_height() for details. svn path=/trunk/; revision=19392
* New method (GtkBuilderConverter._create_object): Conditionally take a nodeJohan Dahlin2008-01-181-11/+45
| | | | | | | | | | | | | | | 2008-01-18 Johan Dahlin <johan@gnome.org> * gtk/gtk-builder-convert (get_property_node): New method (GtkBuilderConverter._create_object): Conditionally take a node as a property value, so don't lose translate/context attributes if they are set. (GtkBuilderConverter._add_action_from_menuitem): Send in Node as property values instead of strings. (#509153, Erik van Pienbroek) svn path=/trunk/; revision=19383
* Change GtkCalendarDetailFunc to return newly allocated string. (#339540)Mathias Hasselmann2008-01-172-10/+15
| | | | | | | | * gtk/gtkcalendar.c: Release the memory returned by the detail_func. * gtk/gtkcalendar.h: Remove G_CONST_RETURN from GtkCalendarDetailFunc. * tests/testcalendar.c: Duplicate calendar details before returning. svn path=/trunk/; revision=19382
* Store the event mask and extension event mode directly in the gobject dataChristian Persch2008-01-161-83/+17
| | | | | | | | * gtk/gtkwidget.c: Store the event mask and extension event mode directly in the gobject data pointer, instead of in an allocated gint. Bug #506604. svn path=/trunk/; revision=19381
* Emit the notify::model signal. (#509819, David Zeuthen)Matthias Clasen2008-01-161-1/+4
| | | | | | | | | | | 2008-01-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.c (gtk_combo_box_set_model): Emit the notify::model signal. (#509819, David Zeuthen) svn path=/trunk/; revision=19374
* add cast to fix const warning.Michael Natterer2008-01-141-9/+14
| | | | | | | | | | | | | 2008-01-14 Michael Natterer <mitch@imendio.com> * gtk/gtkrc.c (_gtk_rc_style_unset_rc_property): add cast to fix const warning. (gtk_rc_parse_any): change variables to const and introduce another local variable to fix const warnings. svn path=/trunk/; revision=19371
* fix signedness warning.Michael Natterer2008-01-141-2/+2
| | | | | | | | | | 2008-01-14 Michael Natterer <mitch@imendio.com> * gtk/gtkoldeditable.c (gtk_old_editable_selection_received): fix signedness warning. svn path=/trunk/; revision=19368
* remove unused variable.Michael Natterer2008-01-141-1/+0
| | | | | | | | | 2008-01-14 Michael Natterer <mitch@imendio.com> * gtk/gtkiconcache.c (find_image_offset): remove unused variable. svn path=/trunk/; revision=19367
* cast "uris" to guchar* when passing it to gtk_selection_data_set().Michael Natterer2008-01-141-1/+1
| | | | | | | | | | 2008-01-14 Michael Natterer <mitch@gimp.org> * gtk/gtkfilesystemmodel.c (drag_source_drag_data_get): cast "uris" to guchar* when passing it to gtk_selection_data_set(). svn path=/trunk/; revision=19366
* Explain name choice for gtk_tool_item_toolbar_reconfigured.Mathias Hasselmann2008-01-141-0/+7
| | | | | | | * gtk/gtktoolitem.c: Add comment expaining name choice for gtk_tool_item_toolbar_reconfigured. svn path=/trunk/; revision=19362
* Make _gtk_tool_item_toolbar_reconfigured public to allow GtkToolShellMathias Hasselmann2008-01-134-13/+13
| | | | | | | | | | | implementations to notify its children, when some aspect of their configuration changed (#509042). * gtk/gtk.symbols: Add gtk_tool_item_toolbar_reconfigured. * gtk/gtktoolbar.c, gtk/gtktoolitem.c, gtk/gtktoolitem.h: Rename _gtk_tool_item_toolbar_reconfigured. svn path=/trunk/; revision=19361
* Include <gtk/gtktoolshell.h> from gtk.h.Mathias Hasselmann2008-01-121-0/+1
| | | | | | * gtk/gtk.h: Add gtktoolshell.h svn path=/trunk/; revision=19356
* Print angle brackets arround e-mail addresses in the about dialogMathias Hasselmann2008-01-121-10/+12
| | | | | | | | (#409520, Mariano Suárez-Alvarez). * gtk/gtkaboutdialog.c: Keep e-mail brackets in add_credits_page(). svn path=/trunk/; revision=19354
* removed old testutils special casing so test widgets are always queues for13:28:02 Tim Janik2008-01-112-11/+1
| | | | | | | | | | | | | | | 2008-01-11 13:28:02 Tim Janik <timj@imendio.com> * gtk/gtktestutils.c (gtk_test_create_widget): removed old testutils special casing so test widgets are always queues for destruction during teardown. * gtk/tests/testing.c: removed bits left-over from testing without gtestutils.h. svn path=/trunk/; revision=19352
* Fix possible recursion by resetting the idle source id. (#507605, WilliamEmmanuele Bassi2008-01-101-10/+14
| | | | | | | | | | | 2008-01-10 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchoosermenu.c: (idle_populate_func), (idle_populate_clean_up): Fix possible recursion by resetting the idle source id. (#507605, William Pitcock) svn path=/trunk/; revision=19339
* fully initialize GdkWindowAttr to avoid valgrind warnings. (#507751, patchKristian Rietveld2008-01-101-11/+12
| | | | | | | | | | | 2008-01-10 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_motion_draw_column_motion_arrow), (_gtk_tree_view_column_start_drag): fully initialize GdkWindowAttr to avoid valgrind warnings. (#507751, patch from Christian Persch). svn path=/trunk/; revision=19333
* Fix a leak of the path (#504611, patch from Sadrul Habib Chowdhury).Kristian Rietveld2008-01-101-1/+2
| | | | | | | | | | 2008-01-10 Kristian Rietveld <kris@imendio.com> * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_path): Fix a leak of the path (#504611, patch from Sadrul Habib Chowdhury). svn path=/trunk/; revision=19332
* Fix #477175, reported by Juri Pakaste.Kristian Rietveld2008-01-103-12/+58
| | | | | | | | | | | | | | | | | | | | | | | | 2008-01-10 Kristian Rietveld <kris@imendio.com> Fix #477175, reported by Juri Pakaste. * gtk/gtktreeprivate.h: * gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): do not set tree_view->priv->dy here directly, just calculate the new value and set it on the adjustment, (gtk_tree_view_adjustment_changed): add guards to not call gtk_tree_view_dy_to_top_row() if we are currently in gtk_tree_view_top_row_to_dy(), (gtk_tree_view_put): fix coordinate annotation: these are bin_window coordinates, not tree coordinates, (gtk_tree_view_real_start_editing): add cast. * gtk/tests/treeview-scrolling.c: add an assertion for checking the position of the editable in the "create new row and start editing" tests. svn path=/trunk/; revision=19331
* remove unused variable.Michael Natterer2008-01-097-16/+14
| | | | | | | | | | | | | | | | | | | | | 2008-01-09 Michael Natterer <mitch@imendio.com> * gtk/gtkcolorsel.c (make_label_spinbutton): remove unused variable. * gtk/gtkcombobox.c (gtk_combo_box_detacher) * gtk/gtkicontheme.c (theme_list_contexts) (gtk_icon_theme_lookup_icon) * gtk/gtkimcontextsimple.c (beep_window) * gtk/gtklinkbutton.c (set_link_color) * gtk/gtkuimanager.c (child_hierarchy_changed_cb): add casts to fix warnings. * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): remove unused variable and add const to another to fix a warning. svn path=/trunk/; revision=19330
* Be more robust when removing the current page. (#499951, Andreas Sandberg)Matthias Clasen2008-01-081-0/+3
| | | | | | | | | | | 2008-01-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkassistant.c (remove_page): Be more robust when removing the current page. (#499951, Andreas Sandberg) svn path=/trunk/; revision=19321
* Declare value in the example code for GtkSpinButton::output, as pointedJohan Dahlin2008-01-071-0/+1
| | | | | | | | | | 2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtkspinbutton.c: Declare value in the example code for GtkSpinButton::output, as pointed out by Anders Carlsson. svn path=/trunk/; revision=19319
* Make the labels left-aligned, and remove an obsolete event box. BugChristian Persch2008-01-061-15/+12
| | | | | | | | | 2008-01-06 Christian Persch <chpe@gnome.org> * gtk/gtkpagesetupunixdialog.c: Make the labels left-aligned, and remove an obsolete event box. Bug #506760. svn path=/trunk/; revision=19318
* Allow domains to be overridden in <interface>'s if a translation-domain isJohan Dahlin2008-01-061-2/+2
| | | | | | | | | | | | | | | 2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtkbuilderparser.c (parse_interface): Allow domains to be overridden in <interface>'s if a translation-domain is set in the builder. (_gtk_builder_parser_parse_buffer): Do not modify the translation-domain of the builder, make the domain set in the <interface> apply only to strings in that interface. (#496831, Ryan Lortie) svn path=/trunk/; revision=19316
* Avoid adding unnecessary trailing newlines to g_warning calls.Johan Dahlin2008-01-061-4/+4
| | | | | | | | | | 2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtkbuilder.c: Avoid adding unnecessary trailing newlines to g_warning calls. svn path=/trunk/; revision=19315
* Remove an unused variableJohan Dahlin2008-01-061-1/+0
| | | | | | | | * gtk/gtktreestore.c (tree_model_end_element): Remove an unused variable svn path=/trunk/; revision=19314
* Document the ::output signal and add an example. (#507566, example by OwenMatthias Clasen2008-01-061-0/+27
| | | | | | | | | 2008-01-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtkspinbutton.c: Document the ::output signal and add an example. (#507566, example by Owen Taylor) svn path=/trunk/; revision=19312
* Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently. Fixes #5075Johan Dahlin2008-01-0613-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make sure that --root works for toplevel widgets. (#491847, Phil Lello)Johan Dahlin2008-01-061-5/+0
| | | | | | | | | | | 2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtk-builder-convert (GtkBuilderConverter._strip_root): Make sure that --root works for toplevel widgets. (#491847, Phil Lello) svn path=/trunk/; revision=19309
* Avoid some compiler warnings (#507000).Mathias Hasselmann2008-01-053-9/+11
| | | | | | | | | * gtk/gtkbuilder.c, gtk/gtkbuilderprivate.h: Use proper sign for value argument of _gtk_builder_flags_from_string. * gtk/gtkwidget.c: Don't alias the child pointer passed to gdk_window_get_user_data. svn path=/trunk/; revision=19306
* Use the correct comparison function (kudos to Christian Persch and ClaudioEmmanuele Bassi2008-01-032-3/+3
| | | | | | | | | | | | | | 2008-01-03 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the correct comparison function (kudos to Christian Persch and Claudio Saavedra for spotting this) * gtk/gtkrecentchooserutils.c: (sort_recent_items_mru), (sort_recent_items_lru): Ditto as above. svn path=/trunk/; revision=19302
* Also reorder menu when reordering tabs by drag & drop (Bug #506474)Johannes Schmid2007-12-311-1/+4
| | | | | | | | | | | | | | | 2007-12-30 Johannes Schmid <jhs@gnome.org> * gtk/gtknotebook.c: (gtk_notebook_stop_reorder): Also reorder menu when reordering tabs by drag & drop (Bug #506474) * tests/testnotebookdnd.c: (create_notebook_with_notebooks): Add a menu to one of the notebooks to have a test-case for the change mentioned above. svn path=/trunk/; revision=19294
* Using GSlice for GtkTreePathPhilip Van Hoof2007-12-311-3/+3
| | | | | | | | | 2007-12-31 Philip Van Hoof <pvanhoof@gnome.org> * gtk/gtktreemodel.c: Using GSlice for GtkTreePath svn path=/trunk/; revision=19292
* Plug a mem leak. Bug #506107.Christian Persch2007-12-311-3/+4
| | | | | | | | | 2007-12-31 Christian Persch <chpe@gnome.org> * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_property): Plug a mem leak. Bug #506107. svn path=/trunk/; revision=19290
* Adjust to icon cache api change. (#506135, Kazuki Iwamoto)Matthias Clasen2007-12-291-1/+3
| | | | | | | | | | | 2007-12-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconfactory.c (render_fallback_image): Adjust to icon cache api change. (#506135, Kazuki Iwamoto) svn path=/trunk/; revision=19289
* Remove max_detail_height field from GtkCalendarPrivate. (#339540)Mathias Hasselmann2007-12-281-7/+6
| | | | | | | * gtk/gtkcalendar.c: Drop max_detail_height field, and use a local variable instead in gtk_calendar_size_request. svn path=/trunk/; revision=19286
* Make finalizer more robustMatthias Clasen2007-12-281-14/+19
| | | | svn path=/trunk/; revision=19283
* Draw bottom shadow of GtkCalender headings. (#506113)Mathias Hasselmann2007-12-281-1/+1
| | | | | | * gtk/gtkcalendar.c: Set proper initial height for priv->header_win. svn path=/trunk/; revision=19282
* Document some initial valuesMatthias Clasen2007-12-281-0/+21
| | | | svn path=/trunk/; revision=19281
* More default property value fixesMatthias Clasen2007-12-282-5/+5
| | | | svn path=/trunk/; revision=19280
* Plug a mem leak. Bug #506096.Christian Persch2007-12-281-1/+1
| | | | | | | | | 2007-12-28 Christian Persch <chpe@gnome.org> * gtk/gtkfontsel.c: (gtk_font_selection_get_property): Plug a mem leak. Bug #506096. svn path=/trunk/; revision=19279
* More default property value fixesMatthias Clasen2007-12-282-1/+3
| | | | svn path=/trunk/; revision=19278
* More default property value fixesMatthias Clasen2007-12-283-7/+7
| | | | svn path=/trunk/; revision=19277