]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 18 Dec 2011 19:11:34 +0000 (20:11 +0100)]
Updated Spanish translation

12 years agogdk,xi2: Make more resilient about not yet known devices
Carlos Garnacho [Sun, 18 Dec 2011 17:56:51 +0000 (18:56 +0100)]
gdk,xi2: Make more resilient about not yet known devices

Dealing with disabled devices may turn into hierarchy/device
changed events on device IDs with no backing GdkDevice yet,
so protect against that. The device attachment will be handled
correctly when the device is enabled later.

12 years agotextlayout: cleanup
Ignacio Casal Quinteiro [Sun, 18 Dec 2011 17:45:49 +0000 (18:45 +0100)]
textlayout: cleanup

Use g_clear_object, move unrefs to dispose and reorganize code

12 years agoUse gtk_text_layout_get_iter_at_line
Paolo Borelli [Sun, 18 Dec 2011 16:44:23 +0000 (17:44 +0100)]
Use gtk_text_layout_get_iter_at_line

We already have a gtk_text_layout_get_iter_at_line wrapper that takes
care of getting the btree from the layout, we may as well use it.

12 years agoRemove useless get_iter_at_line calls.
Paolo Borelli [Sun, 18 Dec 2011 16:35:08 +0000 (17:35 +0100)]
Remove useless get_iter_at_line calls.

No need to call _gtk_text_btree_get_iter_at_line right before calling
totally_invisible_line, since it is the first thing it does itself.

12 years ago[l10n] Updated Kazakh translation
Baurzhan Muftakhidinov [Sat, 17 Dec 2011 20:11:15 +0000 (21:11 +0100)]
[l10n] Updated Kazakh translation

12 years agoUpdated POTFILES.in
Piotr Drąg [Sat, 17 Dec 2011 18:50:27 +0000 (19:50 +0100)]
Updated POTFILES.in

12 years agotests: Add a test for latest commit
Rui Matos [Sat, 17 Dec 2011 11:51:35 +0000 (11:51 +0000)]
tests: Add a test for latest commit

https://bugzilla.gnome.org/show_bug.cgi?id=666392

12 years agowidget: Flip the sensitive flag even if the state doesn't change
Rui Matos [Fri, 16 Dec 2011 23:46:19 +0000 (23:46 +0000)]
widget: Flip the sensitive flag even if the state doesn't change

Even if we can't change our sensitivity because the parent is insensitive we
should still flip the sensitive flag. Otherwise, with and insensitive parent,

child.set_sensitive(True)
...
parent.set_sensitive(True)

would result in child still being insensitive.

https://bugzilla.gnome.org/show_bug.cgi?id=666392

12 years agofilechooserentry: Catch tab key earlier
Benjamin Otte [Fri, 16 Dec 2011 18:52:46 +0000 (19:52 +0100)]
filechooserentry: Catch tab key earlier

Instead of in the key_press handler, use a signal handler. The signal
handler runs before the default handler, and before other signal
handlers. In particular it runs before the signal handler installed via
gtk_entry_set_completion() which pops down the entry completion, and we
don't want that to happen.

The code does not change the code of the handler in any significant way,
it just refacotrs it to not call the parent anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=663573

12 years agofilechooserentry: Do inline completion only when opening files
Benjamin Otte [Fri, 16 Dec 2011 17:47:42 +0000 (18:47 +0100)]
filechooserentry: Do inline completion only when opening files

When saving files, using <tab> is required. We don't want the UI
randomly changing filenames from below us.

https://bugzilla.gnome.org/show_bug.cgi?id=663573

12 years agofilechooserentry: Remove unused enum
Benjamin Otte [Fri, 16 Dec 2011 17:32:25 +0000 (18:32 +0100)]
filechooserentry: Remove unused enum

12 years agofilechooserentry: Allow NULL as base folder again
Benjamin Otte [Fri, 16 Dec 2011 17:24:24 +0000 (18:24 +0100)]
filechooserentry: Allow NULL as base folder again

This was removed previously, but is necessary to support the case where
no base folder is in use, which should cause an error. This can be
experienced in save mode in the recent files list.

https://bugzilla.gnome.org/show_bug.cgi?id=663573

12 years agofilechooserentry: Don't show files when selecting directory
Benjamin Otte [Mon, 7 Nov 2011 14:02:34 +0000 (15:02 +0100)]
filechooserentry: Don't show files when selecting directory

We don't want to complete on files when they're not supposed to be
selectable.

12 years agofilechooserentry: Remove beep function
Benjamin Otte [Mon, 7 Nov 2011 04:27:00 +0000 (05:27 +0100)]
filechooserentry: Remove beep function

There's only 2 places left where we potentially beep. We can call
gtk_widget_error_bell() directly there.

12 years agofilechooserentry: Simplify load completion
Benjamin Otte [Mon, 7 Nov 2011 04:22:52 +0000 (05:22 +0100)]
filechooserentry: Simplify load completion

Most importantly, consistently trigger a beep when we abort a pending
completion.

12 years agofilechooserentry: Use a GtkFileFilter for filtering
Benjamin Otte [Mon, 7 Nov 2011 04:08:46 +0000 (05:08 +0100)]
filechooserentry: Use a GtkFileFilter for filtering

That way, we can use the regular filtering features of the
filesystemmodel instead of having our own filtering function that
duplicates much of the matching code.

This also removes the broken-on-windows feature where files strting with
a dot were not autocompleted.

12 years agofilesystemmodel: Add a toggle for whether directories are filtered
Benjamin Otte [Mon, 7 Nov 2011 14:18:40 +0000 (15:18 +0100)]
filesystemmodel: Add a toggle for whether directories are filtered

12 years agofilechooserentry: Remove the file column
Benjamin Otte [Mon, 7 Nov 2011 03:30:04 +0000 (04:30 +0100)]
filechooserentry: Remove the file column

It is not needed anymore.

12 years agofilechooserentry: Simplify code
Benjamin Otte [Mon, 7 Nov 2011 03:20:28 +0000 (04:20 +0100)]
filechooserentry: Simplify code

Use all the clever functions we invented in recent refactorings to
compute the file and dir part and the current folder.

This also fixes the bug where "./" was not taken as the current
directory but interpreted as a file named "./".

12 years agofilechooserentry: Refactor function
Benjamin Otte [Mon, 7 Nov 2011 03:12:49 +0000 (04:12 +0100)]
filechooserentry: Refactor function

Name the function set_completion_folder() and make it accept NULL, so it
behaves like a regular setter function.

12 years agofilechooserentry: Set minimum key length to 0
Benjamin Otte [Mon, 7 Nov 2011 02:51:25 +0000 (03:51 +0100)]
filechooserentry: Set minimum key length to 0

We want the empty chooser to show possible completions, too.

12 years agofilechooserentry: Simplify refresh_current_folder_and_file_part()
Benjamin Otte [Mon, 7 Nov 2011 02:40:16 +0000 (03:40 +0100)]
filechooserentry: Simplify refresh_current_folder_and_file_part()

The function can get the text it's refreshing from itself, as there is
only one possible value. And it doesn't need to return a value anymore.

12 years agofilechooserentry: Get rid of unused member variable
Benjamin Otte [Mon, 7 Nov 2011 02:34:41 +0000 (03:34 +0100)]
filechooserentry: Get rid of unused member variable

in_change isn't set anymore.

12 years agofilechooserentry: Remove _gtk_file_chooser_entry_set_file_part()
Benjamin Otte [Mon, 7 Nov 2011 02:33:18 +0000 (03:33 +0100)]
filechooserentry: Remove _gtk_file_chooser_entry_set_file_part()

gtk_entry_set_text() is fine.

12 years agofilechooserentry: Use completion for completion
Benjamin Otte [Mon, 7 Nov 2011 02:22:26 +0000 (03:22 +0100)]
filechooserentry: Use completion for completion

Reduce the amount of code even more by using the entry completion to
query the prefix.

12 years agofilechooserentry: Add gtk_file_chooser_entry_get_completion_text()
Benjamin Otte [Mon, 7 Nov 2011 02:09:22 +0000 (03:09 +0100)]
filechooserentry: Add gtk_file_chooser_entry_get_completion_text()

This returns the text that should be completed on. As this is somewhat
tricky to compute (and in fact one place did it wrong), let's make it a
function.

12 years agofilechooserentry: Don't update the folder when completing
Benjamin Otte [Mon, 7 Nov 2011 01:58:26 +0000 (02:58 +0100)]
filechooserentry: Don't update the folder when completing

The folder is always up to date, there's no need to update it. (If the
folder is not up to date, that is a bug and needs to be fixed
elsewhere.)

12 years agofilechooserentry: Don't override activate
Benjamin Otte [Mon, 7 Nov 2011 01:53:05 +0000 (02:53 +0100)]
filechooserentry: Don't override activate

The code is no longer necessary, because the relevant parts for inline
completion are now handled by GtkEntry.

12 years agofilechooserentry: Simplify append_common_prefix()
Benjamin Otte [Mon, 7 Nov 2011 01:39:02 +0000 (02:39 +0100)]
filechooserentry: Simplify append_common_prefix()

Now that we don't need to know anymore why insertion failed, we can
simplify the append function quite a lot.

A simple rule now: If we did not insert anything, beep.

12 years agofilechooserentry: Remove completion feedback
Benjamin Otte [Mon, 7 Nov 2011 01:30:06 +0000 (02:30 +0100)]
filechooserentry: Remove completion feedback

Too much special code for no gain.

I did a totally unscientific questionnaire on GNOME IRC (assuming
autocompletion is for advanced users) and nobody even knew what this is.
So I suspect it's useless. Also, it's positioned completely wrong anyway
and nobody noticed so far. Last but not least, I'm trying to imitate
bash here and bash doesn't show feedback.

12 years agofilechooserentry: Redo completion popup trigger
Benjamin Otte [Mon, 7 Nov 2011 01:16:43 +0000 (02:16 +0100)]
filechooserentry: Redo completion popup trigger

Use dispatch_properties_changed() instead of GtkEditable to watch for
changes to the to-be-completed text. This is necessary because various
functions in GtkEntry don't use the interface vfuncs and one only
becomes aware of them via notifications. I'm not sure this is intended
behavior, but it's how it works today.
Also, use the same code for triggering in all situations.

What the code does is this: It looks at the part of the text in front of
the cursor (or selection) and completes for it. Once the directory has
been enumerated, inline completion is activated. Note that popping up of
the completion popup is completely handled by GtkEntry.

12 years agofilechooserentry: Get rid of RefreshMode
Benjamin Otte [Sun, 6 Nov 2011 02:52:41 +0000 (03:52 +0100)]
filechooserentry: Get rid of RefreshMode

Instead, pass the text to use to refresh_current_folder_and_file_part().
This also gets rid of the problem introduced earlier that the position
is not properly updated in do_insert_text() and therefor the completion
is wrong.

12 years agofilechooserentry: Use inline completion
Benjamin Otte [Sun, 6 Nov 2011 02:00:47 +0000 (03:00 +0100)]
filechooserentry: Use inline completion

... from GtkEntryCompletion instead of implementing a poor copy
ourselves. This also makes the file chooser entry behave a lot closer to
normal entries.

12 years agofilechooserentry: Merge function
Benjamin Otte [Sun, 6 Nov 2011 01:47:36 +0000 (02:47 +0100)]
filechooserentry: Merge function

12 years agofilechooserentry: Set the text column of the entry completion
Benjamin Otte [Sun, 6 Nov 2011 01:33:57 +0000 (02:33 +0100)]
filechooserentry: Set the text column of the entry completion

I want to use it in the next commits, but am doing this in a separate
commit so we can find side effects causing bugs easier when bisecting.

12 years agofilechooserentry: Simplify match_selected function
Benjamin Otte [Sun, 6 Nov 2011 01:21:28 +0000 (02:21 +0100)]
filechooserentry: Simplify match_selected function

12 years agofilechooserentry: Keep an extra column for the full path
Benjamin Otte [Sat, 5 Nov 2011 21:31:40 +0000 (22:31 +0100)]
filechooserentry: Keep an extra column for the full path

This is identical to the display name when not having a path that
changes the folder. Otherwise it will have the full path that was
entered in the entry. Say when from your home dir, you type
"../../usr/li", the full path for "lib" and "lib64" will be
"../../usr/lib" and "../../usr/lib64" respectively. This value isn't
used yet, but will be soon.

12 years agoentrycompletion: Export gtk_entry_completion_compute_prefix()
Benjamin Otte [Sat, 5 Nov 2011 19:38:28 +0000 (20:38 +0100)]
entrycompletion: Export gtk_entry_completion_compute_prefix()

I want to use it in the file chooser entry autocomplete code.

12 years agofilechooserentry: Redo _gtk_file_chooser_entry_get_file_part()
Benjamin Otte [Sat, 5 Nov 2011 02:56:36 +0000 (03:56 +0100)]
filechooserentry: Redo _gtk_file_chooser_entry_get_file_part()

The new version does not need to update any text, it just strips the
last part of the existing entry.

12 years agofilechooserentry: Modify _gtk_file_chooser_entry_get_current_folder()
Benjamin Otte [Sat, 5 Nov 2011 02:53:32 +0000 (03:53 +0100)]
filechooserentry: Modify _gtk_file_chooser_entry_get_current_folder()

The new version does not need to muck with the entry, it just extracts
the required information. It returns a reference to the folder though,
as we extract the information now instead of returning something stored.

12 years agofilechooserentry: Split out function
Benjamin Otte [Sat, 5 Nov 2011 02:28:02 +0000 (03:28 +0100)]
filechooserentry: Split out function

I want to use that function elsewhere, so split it out.

12 years agofilechooserentry: Simplify code
Benjamin Otte [Sat, 5 Nov 2011 01:51:59 +0000 (02:51 +0100)]
filechooserentry: Simplify code

Now that the base folder is always != NULL, we can remove the parts of
the code that check for NULL.

12 years agofilechooserentry: Ensure the base folder is always valid
Benjamin Otte [Sat, 5 Nov 2011 01:31:04 +0000 (02:31 +0100)]
filechooserentry: Ensure the base folder is always valid

If the base folder is set to NULL, then we just assume the home dir.
FIXME: Should we disallow a NULL folder?

12 years agofilechooserentry: Don't complain about incomplete hostnames
Benjamin Otte [Sat, 5 Nov 2011 00:53:55 +0000 (01:53 +0100)]
filechooserentry: Don't complain about incomplete hostnames

First of all, those hostnames may very well be complete, second of all,
smb:// is a valid uri to enter.

12 years agofilechooserentry: Start autocomplete immediately
Benjamin Otte [Fri, 4 Nov 2011 23:14:39 +0000 (00:14 +0100)]
filechooserentry: Start autocomplete immediately

Don't do idle handlers for this.

12 years agofilechooserentry: Remove file_system argument
Benjamin Otte [Fri, 4 Nov 2011 16:02:23 +0000 (17:02 +0100)]
filechooserentry: Remove file_system argument

It's not needed anymore.

12 years agofilechooserentry: Simplify code
Benjamin Otte [Fri, 4 Nov 2011 15:33:58 +0000 (16:33 +0100)]
filechooserentry: Simplify code

Now that we've imported the function in the last commit, rename it and
omit useless arguments by instead passing in the entry directly.

12 years agofilechooserentry: Move _gtk_file_system_parse()
Benjamin Otte [Fri, 4 Nov 2011 15:14:01 +0000 (16:14 +0100)]
filechooserentry: Move _gtk_file_system_parse()

It's very specific to the file chooser entry, so it's better kept there.
It's also not used anywhere else in the code.

12 years agogtkfolder: Remove
Benjamin Otte [Thu, 3 Nov 2011 21:19:57 +0000 (22:19 +0100)]
gtkfolder: Remove

It's not used anymore. And new code should of course use gio.

12 years agofilechooserentry: Use a GtkFileSystemModel
Benjamin Otte [Thu, 3 Nov 2011 17:27:36 +0000 (18:27 +0100)]
filechooserentry: Use a GtkFileSystemModel

Replace the usage of a list store and a GtkFolder with a
GtkFileSystemModel. This improves performance and reduces code size.

12 years agofilechooserentry: Store the liststore as a treemodel
Benjamin Otte [Thu, 3 Nov 2011 17:11:14 +0000 (18:11 +0100)]
filechooserentry: Store the liststore as a treemodel

Just changes the type of the member variable. This way we can avoid a
lot of casts.

12 years agofilechooserentry: Make appending / to directories simpler
Benjamin Otte [Thu, 3 Nov 2011 16:46:47 +0000 (17:46 +0100)]
filechooserentry: Make appending / to directories simpler

12 years agofilechooserentry: Only append / to directory names once
Benjamin Otte [Thu, 3 Nov 2011 16:32:44 +0000 (17:32 +0100)]
filechooserentry: Only append / to directory names once

Since 069d78ed31fc1c0a9cb7621d27fe10d7b974315b the / is appended to
directories upon constructing the display name, so there is no need to
do it later.

12 years agofilechooserentry: Don't trim away the slash after directories
Benjamin Otte [Thu, 3 Nov 2011 21:05:38 +0000 (22:05 +0100)]
filechooserentry: Don't trim away the slash after directories

It's not necessary as the code appending the slashes checks for a slash
these days.

12 years agofilechooserentry: Fold in start_loading_current_folder()
Benjamin Otte [Thu, 3 Nov 2011 14:20:28 +0000 (15:20 +0100)]
filechooserentry: Fold in start_loading_current_folder()

The function just did one thing, we can just fold it into the only
caller.

12 years agofilechooserentry: The file system cannot be NULL
Benjamin Otte [Thu, 3 Nov 2011 14:13:17 +0000 (15:13 +0100)]
filechooserentry: The file system cannot be NULL

Remove code that checked this.

12 years agofilechooserentry: Make the filesystem a construct-only argument
Benjamin Otte [Thu, 3 Nov 2011 14:12:17 +0000 (15:12 +0100)]
filechooserentry: Make the filesystem a construct-only argument

This allows simplifications in the code.

12 years agofilechooserentry: Keep finished_loading variable ourselves
Benjamin Otte [Thu, 3 Nov 2011 13:11:57 +0000 (14:11 +0100)]
filechooserentry: Keep finished_loading variable ourselves

This will be useful in the next commits when the GtkFolder code
previously keeping that variable gets repalced.

12 years agofilechooserentry: force_reload is never TRUE
Benjamin Otte [Fri, 28 Oct 2011 20:35:04 +0000 (13:35 -0700)]
filechooserentry: force_reload is never TRUE

.. so remove it.

12 years agofilechooserentry: Fold function into other
Benjamin Otte [Fri, 28 Oct 2011 20:19:15 +0000 (13:19 -0700)]
filechooserentry: Fold function into other

There's no need to discard the current folder's file without also
discarding the folder object.

12 years agofilechooserentry: Reorganize function
Benjamin Otte [Fri, 28 Oct 2011 12:38:11 +0000 (05:38 -0700)]
filechooserentry: Reorganize function

Setter functions the way I code it look like this (in order):
1) Figure out if the value changed. If not, exit early.
2) Clear the old value (ie unref stuff, disconnect signals
3) Copy the new value
4) Set up things about the new value

This reorganization does that.

And by doing that, it even reduces the amount of code and the amount of
branches (and with it, nesting) needed.

12 years agofilechooserentry: Use the actual discarding function to discard a folder
Benjamin Otte [Fri, 28 Oct 2011 03:00:20 +0000 (20:00 -0700)]
filechooserentry: Use the actual discarding function to discard a folder

12 years agofilechooserentry: Don't use a magic number
Benjamin Otte [Sat, 5 Nov 2011 21:36:16 +0000 (22:36 +0100)]
filechooserentry: Don't use a magic number

... when we have a proper enum value for a column.

12 years agoentry: Move freeze/thaw into begin/end_change
Benjamin Otte [Sun, 6 Nov 2011 17:47:28 +0000 (18:47 +0100)]
entry: Move freeze/thaw into begin/end_change

12 years agoentry: Don't try to handle Tab in entry completions
Benjamin Otte [Thu, 3 Nov 2011 21:03:22 +0000 (22:03 +0100)]
entry: Don't try to handle Tab in entry completions

Instead, fall through to the default handler after closing the
completion. This has the advantage of letting the file chooser entry
capture the tab key properly, so one can't accidentally move out of the
entry by pressing tab while the completion is popped up.

I also suspect it fixes bugs with weird tab keys and shift/ctrl
oddities. But who knows...

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 16 Dec 2011 13:22:49 +0000 (14:22 +0100)]
Updated Spanish translation

12 years agotests: Relax a refcount comparison check
Benjamin Otte [Fri, 16 Dec 2011 12:38:06 +0000 (13:38 +0100)]
tests: Relax a refcount comparison check

We now test for real_refcount >= expected_refcount, because various
parts of the code (a11y, selection, cursor, ...) can and do add
references.

12 years agoa11y: Don't emit children-changed when nothing changed
Benjamin Otte [Fri, 16 Dec 2011 11:57:06 +0000 (12:57 +0100)]
a11y: Don't emit children-changed when nothing changed

When we have 0 columns, no children ever get added or removed.

12 years agotreeview: Run unref helper for all rows
Benjamin Otte [Fri, 16 Dec 2011 10:43:16 +0000 (11:43 +0100)]
treeview: Run unref helper for all rows

Don't do shortcuts. Because all rows need to be unreffed.
Introduced in 92929b968bd479e237b8f6dc1686ca953f4d8c5d.

12 years agoUpdates
Matthias Clasen [Fri, 16 Dec 2011 04:59:36 +0000 (23:59 -0500)]
Updates

12 years agoFix more linking fallout
Matthias Clasen [Fri, 16 Dec 2011 04:35:06 +0000 (23:35 -0500)]
Fix more linking fallout

We are using xinput and gmodule API in a few places in libgtk.
https://bugzilla.gnome.org/show_bug.cgi?id=665326

12 years agoAdd missing symbols to the docs
Matthias Clasen [Fri, 16 Dec 2011 04:09:23 +0000 (23:09 -0500)]
Add missing symbols to the docs

12 years agoDoc format fixes
Matthias Clasen [Fri, 16 Dec 2011 04:08:07 +0000 (23:08 -0500)]
Doc format fixes

12 years agoRemove some accidental additions
Matthias Clasen [Fri, 16 Dec 2011 04:00:47 +0000 (23:00 -0500)]
Remove some accidental additions

These functions were never actually implemented

12 years agoCosmetic change
Matthias Clasen [Fri, 16 Dec 2011 03:56:45 +0000 (22:56 -0500)]
Cosmetic change

12 years agoDoc typo fix
Matthias Clasen [Fri, 16 Dec 2011 03:55:06 +0000 (22:55 -0500)]
Doc typo fix

12 years agoAdd new symbols
Matthias Clasen [Fri, 16 Dec 2011 03:54:51 +0000 (22:54 -0500)]
Add new symbols

12 years agoDoc typo fix
Matthias Clasen [Fri, 16 Dec 2011 03:52:29 +0000 (22:52 -0500)]
Doc typo fix

12 years agoCosmetic changes
Matthias Clasen [Fri, 16 Dec 2011 03:49:16 +0000 (22:49 -0500)]
Cosmetic changes

12 years agogtk-demo: Fix warnings in changedisplay
Benjamin Otte [Fri, 16 Dec 2011 03:49:03 +0000 (04:49 +0100)]
gtk-demo: Fix warnings in changedisplay

Use the brute force fix. I'm not really interested in fixing this
properly.

12 years agoa11y: Remove unused gtk_cell_accessible_set_cell_data()
Benjamin Otte [Fri, 16 Dec 2011 02:35:59 +0000 (03:35 +0100)]
a11y: Remove unused gtk_cell_accessible_set_cell_data()

12 years agoa11y: Make boolean cell render report its states the new way
Benjamin Otte [Fri, 16 Dec 2011 02:34:25 +0000 (03:34 +0100)]
a11y: Make boolean cell render report its states the new way

12 years agoa11y: Refactor treeview code even more
Benjamin Otte [Fri, 16 Dec 2011 00:02:06 +0000 (01:02 +0100)]
a11y: Refactor treeview code even more

- Split out set_cell_data()
- Use it
- Get rid of update_cell_value() function, it's now just 2 calls

12 years agoa11y: Redo function signature
Benjamin Otte [Thu, 15 Dec 2011 23:28:05 +0000 (00:28 +0100)]
a11y: Redo function signature

With the recent changes to gtk_cell_accessible_update_cache(), the
update_cell_value() function now needs less code, too.

12 years agoa11y: Implement GtkContainerCellAccessible.update_cache
Benjamin Otte [Thu, 15 Dec 2011 23:12:15 +0000 (00:12 +0100)]
a11y: Implement GtkContainerCellAccessible.update_cache

12 years agoa11y: Move update_cache to GtkCellAccesible
Benjamin Otte [Thu, 15 Dec 2011 23:07:46 +0000 (00:07 +0100)]
a11y: Move update_cache to GtkCellAccesible

This way, we can call it for container renderers, too.

12 years agoa11y: Redo cell update function
Benjamin Otte [Thu, 15 Dec 2011 22:51:57 +0000 (23:51 +0100)]
a11y: Redo cell update function

1) always emit signals
   Previously, newly constructed cells would be told to not emit events.
   However, we can ensure that nothing is connected to the signals, so
   they will not actually emit anything.
2) don't return anything
   The return value is unused anyway.

12 years agoa11y: Remove unused function
Benjamin Otte [Thu, 15 Dec 2011 22:39:58 +0000 (23:39 +0100)]
a11y: Remove unused function

12 years agoa11y: remove now unused property lists
Benjamin Otte [Thu, 15 Dec 2011 22:20:40 +0000 (23:20 +0100)]
a11y: remove now unused property lists

12 years agoa11y: Don't copy data between renderers
Benjamin Otte [Thu, 15 Dec 2011 22:13:10 +0000 (23:13 +0100)]
a11y: Don't copy data between renderers

Now that we don't use custom renderers anymore, we don't need to copy
data between them anymore.

12 years agoa11y: Use cell renderer creation funcs unconditionally
Benjamin Otte [Thu, 15 Dec 2011 22:08:16 +0000 (23:08 +0100)]
a11y: Use cell renderer creation funcs unconditionally

Also delete the previous "new" functions and actually set the real cell
renderer here.

12 years agogtk: Add accessible types for cell renderers
Benjamin Otte [Thu, 15 Dec 2011 22:02:54 +0000 (23:02 +0100)]
gtk: Add accessible types for cell renderers

12 years agoa11y: Use the accessible type
Benjamin Otte [Thu, 15 Dec 2011 18:16:43 +0000 (19:16 +0100)]
a11y: Use the accessible type

12 years agocellrenderer: Add API to keep the accessible type
Benjamin Otte [Thu, 15 Dec 2011 17:17:06 +0000 (18:17 +0100)]
cellrenderer: Add API to keep the accessible type

It's private for now, because we require a GType that isn't exported in
the API yet.

12 years agoAPI: cellrenderer: Add a private struct
Benjamin Otte [Thu, 15 Dec 2011 16:21:11 +0000 (17:21 +0100)]
API: cellrenderer: Add a private struct

12 years agoa11y: Add GtkRendererCellAcessible::renderer
Benjamin Otte [Thu, 15 Dec 2011 12:23:28 +0000 (13:23 +0100)]
a11y: Add GtkRendererCellAcessible::renderer

12 years agoa11y: Remove unused variable
Benjamin Otte [Wed, 14 Dec 2011 21:20:38 +0000 (22:20 +0100)]
a11y: Remove unused variable

12 years agotreeview: Send changed signal directly to a11y code
Benjamin Otte [Wed, 14 Dec 2011 17:14:47 +0000 (18:14 +0100)]
treeview: Send changed signal directly to a11y code

No more signal handler is needed, therefore the code can also get rid of
tracking the treemodel. And we use a faster approach for iterating the
changed cellrenderers: We just iterate all columns instead of over all
cell accessibles, as that number is likely quite a bit smaller.

12 years agotests: Add test resetting the model
Benjamin Otte [Wed, 14 Dec 2011 12:49:31 +0000 (13:49 +0100)]
tests: Add test resetting the model

We first set a NULL model and then reset the old model, just to get the
effect of clearing and then resetting.

We reset the cursor and selection afterwards, so the reset doesn't
destroy all the work we did.