summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Increment page sequence before print of the page, not afterMarek Kasik2009-08-101-6/+11
| | | | | | | When printing, increment page sequence before rendering of the page, not after (#590084). In opposite case it runs "end_page" function with wrong parameters when drawing a page in another thread.
* Remove some unused variables (GnomeBug:591218)Javier Jardón2009-08-104-4/+0
|
* Correct a doc commentMatthias Clasen2009-08-081-1/+1
| | | | | Add 'papi' to the list of possible print backends, and mention 'file' instead of 'pdf'.
* Revert "Bug 590959 - Set child_has_focus flag properly"Xan Lopez2009-08-071-2/+2
| | | | | | | This reverts commit 6e0af6c25225440263792a3cbecd8f4301e3def5. The patch seems to break focus handling in some applications, like Epiphany.
* Bug 69872 – GTK_WIDGET_SET_FLAGS should be deprecatedMichael Natterer2009-08-073-1/+25
| | | | Add gtk_widget_has_grab() as replacement for GTK_WIDGET_HAS_GRAB().
* Add gtk_print_operation_get_n_pages_to_print()Carlos Garcia Campos2009-08-072-1/+56
| | | | | It returns the number of pages that will be printed to allow tracking the progress of a print operation. Fixes bgo#582964.
* Bug 69872 – GTK_WIDGET_SET_FLAGS should be deprecatedMichael Natterer2009-08-073-0/+58
| | | | | | Add gtk_widget_get_visible(). For symmetry reasons and for convenience when a widget's visibility state is available as a boolean condition, also add gtk_widget_set_visible() (which simply calls show()/hide()).
* Add a GtkIconView::item-padding propertyMatthias Clasen2009-08-063-21/+88
| | | | | The property can be used to fine-tune who much space each column needs. See bug 586100.
* Emit GtkAssistant::apply before computing the next stepMatthias Clasen2009-08-061-2/+2
| | | | This fixes bug 589745.
* Fix a typoMatthias Clasen2009-08-061-1/+1
| | | | This was reported in bug 586347.
* Update tooltip if no removable one is selectedPascal Terjan2009-08-061-11/+14
|
* Bug 590959 - Set child_has_focus flag properlyBenjamin Otte2009-08-061-2/+2
| | | | | | | | | Previously, this flag wasn't cleared properly when the notebook lost focus, but only when the notebook was focussed again later. As this flag is only used to advance correctly focus pages by grabbing focus to the new page after switching the page, this is not good. In particular, it can cause a focus grab when programmatically switching the notebook page and the focus is inside a completely different widget.
* Check for details request before printMarek Kasik2009-08-061-57/+104
| | | | | | Checks for details request before sending a job to a printer. Shows busy state indication (cursor + status field). This avoids printing to wrong printer (bug #576601).
* Bug 586374 – code does not follow documentationKristian Rietveld2009-07-304-7/+194
| | | | | | | | | | | Properly invalidate iterators in iter_next, iter_children, iter_nth_child and iter_parent when FALSE is returned. ListStore was actually already mostly in order as the GSequence pointers are very strictly checked, but to be a little stricter we've added stamp = 0 lines. TreeStore did not invalidate its iterators, so stamp = 0 lines were added where appropriate. Unit tests have been added to check this. Fixes bug 586374, reported by Mike Gemunde.
* Bug 555109 – selection broken when typeahead activeKristian Rietveld2009-07-301-0/+6
| | | | | | | | gtk_tree_view_enter_notify() now "ignores" the synthesized crossing events. The synthesized crossing events always have (0, 0) as coordinates, which messes things up. This patch does not fix all issues, at least it makes the behavior much more reasonable again. Watch bug 555109 for further discussion on the issue.
* Bug 573321 – additional check in gtk_tree_model_filter_convert_*Kristian Rietveld2009-07-302-0/+4
| | | | | | | | Added checks to see whether the passed iterators are not the same in convert_child_iter_to_iter() and iter_to_child_iter() functions in both the sort and filter models. Fixes bug 573321, suggestion by Vadim Godunko.
* Bug 539377 – Unnecessary warnings when GtkTreeView is not realizedKristian Rietveld2009-07-302-6/+41
| | | | | | | | | | Adapt gtk_tree_view_get_path_at_pos() and gtk_tree_view_get_drag_dest_row() to just return FALSE when bin_window is NULL and not hit a warning. Makes this case consistent with the tree view not having a model. Documentation has been updated to clarify this, unit test has been added. Fixes bug 539377, based on a patch by Bjorn Lindqvist.
* Bug 498010, 546005 - fix assertion in gtk_tree_view_set_cursor_on_cellKristian Rietveld2009-07-301-1/+10
| | | | | | | | | | Instead of failing with warning on !tree_view->priv->tree, return silently when tree_view->priv->model is NULL. Clarified in the documentation that for invalid paths (and every path is invalid when no model is set), the function will fail silently although the current cursor will be unset. Fixes bugs 498010 and 546005.
* Start general GtkTreeView unit testsKristian Rietveld2009-07-302-0/+85
| | | | | | | Includes a test case for bug 546005 to start with, logic provided by Paul Pogonyshev and Bjorn Lindqvist. In the future, we should maybe merge treeview-scrolling.c with this one to create one large monolithic tree view tester.
* Allow disabling New Folder button in File ChoserPascal Terjan2009-07-308-4/+88
| | | | | | Bug #570516. Add a new property "create-folders" meaning that the "New Folder" button should be displayed in the modes where it used to be.
* Bug #514260 – Better filtering for "Recently Used" filesEmmanuele Bassi2009-07-301-3/+7
| | | | | | | | | | | Instead of refiltering the recently used files we should rebuild the list altogether when the current GtkFileFilter changes; this allows us to keep showing the maximum amount of recently used files. Fixes bug: http://bugzilla.gnome.org/show_bug.cgi?id=514260
* Remove unused dirty iter discovery functionsKristian Rietveld2009-07-301-136/+0
| | | | | | gtk_tree_view_discover_dirty_iter() and gtk_tree_view_discover_iter() have been in the tree forever, but unused since 1.3.8 or so. I guess we no longer need them, so removed them. Fixes a compiler warning as well.
* Fix gtk_widget_get_allocation()Michael Natterer2009-07-303-1/+7
| | | | | | - add it to the header - add the symbol to gtk.symbols - fix coding style and check for allocation != NULL
* add getter function for widget->allocationCody Russell2009-07-291-0/+17
| | | | | | | Add gtk_widget_get_allocation() to retrieve a widget's allocation. Needed as a step to enable GSEAL building. This fixes bug #585211
* docs: inline see_also to sections docs and add missing <variablelist>Stefan Kost2009-07-281-0/+16
| | | | This fixes docbook validation for the file.
* bgo#161489 - In the file chooser, let the left/right arrow keys switch focus ↵Federico Mena Quintero2009-07-271-4/+30
| | | | | | | | between the file list and shortcuts Based on a patch by Christian Neumair <cneumair@gnome.org> Signed-off-by: Federico Mena Quintero <federico@novell.com>
* From the shortcuts pane, focus the GtkEntry and redirect unhandled ↵Federico Mena Quintero2009-07-271-18/+42
| | | | | | | | | | | | | | | | | | keystrokes to it This lets us do this: 1. click on a folder in the shortcuts pane 2. start typing a filename Then, the typed filename will actually go to the filename entry, like the user expects. (Or to the search entry, in case the user clicked on the Search shortcut.) Also, removed the obsolete callback that made "/" and "~" typed in the shortcuts pane bring up the location entry. Signed-off-by: Federico Mena Quintero <federico@novell.com>
* bgo#534462: Disable interactive search in the file chooser's shortcuts paneFederico Mena Quintero2009-07-271-0/+1
| | | | | | | | | | | | | People often do this: 1. Bring up a SAVE dialog 2. Click on a folder in the shortcuts pane 3. Start typing a filename 4. Oops! The interactive-search entry in the shortcuts pane appears. With this, the shortcuts pane will not bring up the interactive-search entry. Then it will be clear that you are not typing in the right place. Signed-off-by: Federico Mena Quintero <federico@novell.com>
* Bug 589336 – Add GtkTreeViewColumn:sort-column-id propertyPhilip Withnall2009-07-261-2/+32
| | | | Add the property, change notifications and documentation stubs.
* Fix issues with resize handlesMatthias Clasen2009-07-241-14/+21
| | | | | The resize handles were not correctly redrawn and not positioned correctly, initially.
* Microoptimization in interactive search handlingPaolo Borelli2009-07-201-3/+2
|
* Bug 588943 – set correct selection before emitting cursor-changed when ↵Paolo Borelli2009-07-201-1/+1
| | | | | | | searching Make sure the correct selection is set when emitting cursor-changed during an interactive search
* g_strdup_print does not exist, the function is g_strdup_printf.Xan Lopez2009-07-202-2/+2
|
* Remove markup from translatable stringsMatthias Clasen2009-07-202-12/+20
| | | | Pointed out in bug 588964. String change !
* Fix a typo in the startup-id property definitionMatthias Clasen2009-07-192-6/+20
| | | | | As well as some new GtkPrintOperation properties, which were not correctly set up. This was noticed in bug 588958.
* Add a translator commentMatthias Clasen2009-07-191-0/+1
| | | | This fixes bug 589035.
* Use perl to make gtkalias.h without warningsHans Breuer2009-07-181-2/+2
|
* Two more getters for flags plus one new propertyMichael Natterer2009-07-173-5/+79
| | | | | | | More stuff based on patches from Christian Dywan: - gtk_widget_get_app_paintable() - gtk_widget_get_double_buffered() - r/w property "double-buffered"
* Bug 588273 - Make number of validated rows depend on time, not row countBenjamin Otte2009-07-171-5/+9
| | | | | | | | | | | | | | | | | | | Previously, do_validate_rows() validated 300 rows per iteration. While this is usually not problematic, as the typical tree view contains less than 100 rows. Tree views with a lot of columns or complex cell renderers could take inacceptably long, like: - Epiphany's location bar entry completion has multiline and marked up text in every cell. Validating a single row took ~1.5ms here. - In the list view in Nautilus, When enabling all columns, validating a single row would take ~3ms. With 300 rows per iteration, that made those examples take 500ms/1s in a signle main loop callback, and this obviously caused responsiveness problems. Now the code uses a timer and limits the time for validating rows to 30ms. This can cause less lines to be invalidated per call, so the function might be called more often, but generally results in more responsive applications.
* Add API for more widget flagsMichael Natterer2009-07-173-6/+192
| | | | | | | Add the following functions based on a patch from Christian Dywan: - gtk_widget_set/get_can_focus() - gtk_widget_set/get_can_default() - gtk_widget_has_default()
* Correct property typesMatthias Clasen2009-07-171-12/+21
|
* Complete the get_buffer() conversionMatthias Clasen2009-07-171-1/+1
| | | | | There was one direct buffer access in gtk_entry_real_delete_text leftover, and it promptly made our testsuite fail.
* Fix DND onto an empty icon viewMatthias Clasen2009-07-171-1/+1
| | | | | | This did not work due to a copy and paste bug from the time when the treeview DND code was turned into iconview DND code. Fixes bug 599484.
* Change position of paper's dimensions according to reading directionMarek Kasik2009-07-171-11/+35
| | | | | Change position of paper's dimensions in GtkPrintUnixDialog according to reading direction.
* Fixed crashes when GtkEntry's internal buffer is not available (bug 588395)Tristan Van Berkom2009-07-161-80/+56
| | | | | | | To fix this I replaced the code that creates an internal buffer at init and construction time with code that creates a buffer at _get_buffer() time, this is the same as GtkTextView does and fixes the crashes for me.
* Make suitable GtkAssistant buttons defaultMatthias Clasen2009-07-161-15/+16
| | | | | | We grab the default to the apply, forward or close buttons, as appropriate. Also, make sure that the logic for setting the focus to the best place on page change is applied to the initial page.
* Add a tooltip to the save folder comboMatthias Clasen2009-07-151-0/+36
| | | | | | Add a tooltip that shows the full path of the current folder, to avoid ambiguity. We only show the tooltip when the expander is collapsed to avoid cluttering the full file chooser.
* Use G_CONST_RETURN for const return valuesMatthias Clasen2009-07-152-2/+2
|
* Avoid gratitious behaviour changeMatthias Clasen2009-07-151-1/+4
| | | | | gtk_entry_set_text() used to emit the ::delete-text, ::insert-text signals. Changing to GtkEntryBuffer should not change this.
* Make GtkEntryBuffer::max-length and int propertyMatthias Clasen2009-07-152-10/+9
| | | | | This avoid a behaviour change in a corner case and should not make any difference.