Alberto Ruiz
1b00a3eb76
GtkFontChooser: Update fontlist on style change
2011-08-15 18:57:54 -04:00
Alberto Ruiz
6dec212d1d
GtkFontChooser: Add a property to control whether the preview entry is shown or not
2011-08-15 18:57:54 -04:00
Alberto Ruiz
5eb614a25b
GtkFontChooser: Add gtk_font_selection_dialog_get_select_button and use GTK_DISABLE_DEPRECATED in gtkfontsel.h
2011-08-15 18:57:54 -04:00
Alberto Ruiz
1ce5a04406
GtkFontChooser: Changed dialog label from OK to Select, deprecated get_ok_button and internal apply button.
2011-08-15 18:57:54 -04:00
Alberto Ruiz
31776e2a25
GtkFontChooser: implement gtk_font_selection_set/get_preview_text
2011-08-15 18:57:54 -04:00
Alberto Ruiz
14fbbf1420
GtkFontChooser: check if font name is NULL in gtk_font_selection_set_font_name
2011-08-15 18:57:54 -04:00
Alberto Ruiz
ea4603e5d1
GtkFontChooser: gtk_font_selection_set_font_name implementation
2011-08-15 18:57:54 -04:00
Alberto Ruiz
3f2b09422d
GtkFontChooser: Setting the font-name property. Test updates. Remove warnings.
2011-08-15 18:57:54 -04:00
Alberto Ruiz
0aae453d77
GtkFontChooser: Improve bootstrapping of the deprecated lists
2011-08-15 18:57:54 -04:00
Alberto Ruiz
2ef00d23e3
GtkFontChooser: Update selection on deprecated size list selection
2011-08-15 18:57:54 -04:00
Alberto Ruiz
dc1a47ad70
GtkFontChooser: Update selection on deprecated face or font list selection
2011-08-15 18:57:54 -04:00
Alberto Ruiz
0ef0359566
GtkFontChooser: Update size when selecting an item of the deprecated size list
2011-08-15 18:57:54 -04:00
Alberto Ruiz
72a971b0e0
GtkFontChooser: Blocking the cursor change callbacks from happening on the deprecated widgets when selecting the font from the fontselector
2011-08-15 18:57:53 -04:00
Alberto Ruiz
c28b1e32e3
GtkFontChooser: Update deprecated font list on slection
2011-08-15 18:57:53 -04:00
Alberto Ruiz
1821eac1c1
GtkFontChooser: Refactoring the default font size, face and family assignment for clarity
2011-08-15 18:57:53 -04:00
Alberto Ruiz
aa10abacbc
GtkFontChooser: Use the theme font as the default font
2011-08-15 18:57:53 -04:00
Alberto Ruiz
4b92872a97
GtkFontChooser: Add callbacks and improve test to take deprecated widgets into account
2011-08-15 18:57:53 -04:00
Alberto Ruiz
e80053c659
GtkFontChooser: Use GTK_DISABLE_DEPRECATED to encapsulate the deprecated functionality
2011-08-15 18:57:53 -04:00
Alberto Ruiz
3c0b6914e0
GtkFontChooser: Unref deprecated widgets on finalize
2011-08-15 18:57:53 -04:00
Alberto Ruiz
bb008411e0
GtkFontChooser: Use scrolled windows for the deprecated widgets
2011-08-15 18:57:53 -04:00
Alberto Ruiz
706167bbbd
GtkFontChooser: Populate face names in the deprecated face list
2011-08-15 18:57:53 -04:00
Alberto Ruiz
0d112810f9
GtkFontChooser: Populate font family names in the deprecated family list
2011-08-15 18:57:53 -04:00
Alberto Ruiz
8826a10bc8
GtkFontChooser: Add tree view columns for the deprecated widgets
2011-08-15 18:57:53 -04:00
Alberto Ruiz
915b442dc1
GtkFontChooser: Fix segmentation fault in deprecated size list population
2011-08-15 18:57:53 -04:00
Alberto Ruiz
29a0685ee8
GtkFontChooser: Add deprecated calls to the test
2011-08-15 18:57:53 -04:00
Alberto Ruiz
1a2ef4db60
GtkFontChooser: update the size model for the deprecated size list
2011-08-15 18:57:53 -04:00
Alberto Ruiz
e08006f691
GtkFontChooser: initialization and destruction of deprecated widgets and data models
2011-08-15 18:57:53 -04:00
Alberto Ruiz
abc92d5030
GtkFontChooser: Initial support for deprecated functions
2011-08-15 18:57:53 -04:00
Alberto Ruiz
c96698e95f
GtkFontChooser: Filter also by font face
2011-08-15 18:57:53 -04:00
Alberto Ruiz
58b2204651
GtkFontChooser: Layout improvements, spacing between elements and default widget size.
2011-08-15 18:57:53 -04:00
Alberto Ruiz
36156a6c49
GtkFontChooser: Layout improvements. Adding shadow to scrolled windows. Font+Face text is now bold.
2011-08-15 18:57:52 -04:00
Alberto Ruiz
f75e4d314a
GtkFontChooser: Improvements on the size setting signals between the preview, scale and spinbutton. Adding more string fields to the model to allow for backwards compatibility.
2011-08-15 18:57:52 -04:00
Alberto Ruiz
1688512252
GtkFontChooser: Fixing mouse scroll zooming behaviour for the preview and the size controls
2011-08-15 18:57:52 -04:00
Alberto Ruiz
858e13cad6
GtkFontChooser: Setting a minimum width andfix the markup for the rows
2011-08-15 18:57:52 -04:00
Alberto Ruiz
af14106a63
GtkFontChooser: Ellipsize cell renderer and set a better size list
2011-08-15 18:57:52 -04:00
Alberto Ruiz
0db1b63b1f
GtkFontChooser: Keep reference to the face and the family objects
2011-08-15 18:57:52 -04:00
Alberto Ruiz
88ab6f14d3
GtkFontChooser: Better cursor selection and model leak fixes
2011-08-15 18:57:52 -04:00
Alberto Ruiz
f3e9bb312e
GtkFontChooser: Enable font selection
2011-08-15 18:57:52 -04:00
Alberto Ruiz
c9150374d9
GtkFontChooser: Setting a default vertical size
2011-08-15 18:57:52 -04:00
Alberto Ruiz
7f125d95e8
GtkFontChooser: Layout enhancements, using a scrolled window for the preview entry.
2011-08-15 18:57:52 -04:00
Alberto Ruiz
cbaca3e4bf
GtkFontChooser: Fixed size updating in the preview
2011-08-15 18:57:52 -04:00
Alberto Ruiz
272f11069f
GtkFontChooser: Improvements on the spin/slider interaction
2011-08-15 18:57:52 -04:00
Alberto Ruiz
c303d0b18c
GtkFontChooser: The spinner now updates the slider size if it is within the range
2011-08-15 18:57:52 -04:00
Alberto Ruiz
1fa2c503a7
GtkFontChooser: Getting the refiltering right for the clear icon. Filter function speedups.
2011-08-15 18:57:52 -04:00
Alberto Ruiz
94ee606f62
GtkFontChooser: Search entry icon is now dynamic depending on the content
2011-08-15 18:57:52 -04:00
Alberto Ruiz
4db5ea20e8
GtkFontChooser: Set the initial size to the slider, initial callbacks for size change
2011-08-15 18:57:52 -04:00
Alberto Ruiz
fb19245493
GtkFontChooser: Live search implemented
2011-08-15 18:57:51 -04:00
Alberto Ruiz
693617700b
GtkFontChooser: Inserted and deleted text callbacks
2011-08-15 18:57:51 -04:00
Alberto Ruiz
76809e128a
GtkFontChooser: Adding a tree model filter for the search functionality
2011-08-15 18:57:51 -04:00
Alberto Ruiz
ce10919978
GtkFontChooser: Setting the default preview text and the default font size
2011-08-15 18:57:51 -04:00
Alberto Ruiz
9af88217d1
GtkFontChooser: Compilation warning cleanups
2011-08-15 18:57:51 -04:00
Alberto Ruiz
b79802789d
GtkFontChooser: Iterate over faces as well as families to list them
2011-08-15 18:57:51 -04:00
Alberto Ruiz
f854a46890
GtkFontChooser: Improvements in the font face listing
2011-08-15 18:57:51 -04:00
Alberto Ruiz
8655384f51
GtkFontChooser: Set rules hint to TRUE in the main tree view
2011-08-15 18:57:51 -04:00
Alberto Ruiz
7611fe60f8
GtkFontChooser: Populated font list model
2011-08-15 18:57:51 -04:00
Alberto Ruiz
e570a91abb
GtkFontChooser: Add column and cell renderer
2011-08-15 18:57:51 -04:00
Alberto Ruiz
6439fb4263
GtkFontChooser: Create functions to bootstrap the treeview column and settings and update the font list
2011-08-15 18:57:51 -04:00
Alberto Ruiz
48473b48e6
GtkFontChooser: Set vbox to no homogeneus
2011-08-15 18:57:51 -04:00
Alberto Ruiz
8a4cda71af
GtkFontChooser: Setting the height of the preview and have a define for the top padding
2011-08-15 18:57:51 -04:00
Alberto Ruiz
6c44e85852
GtkFontChooser: Added slider and spin button
2011-08-15 18:57:51 -04:00
Alberto Ruiz
f0eef60123
GtkFontChooser: Adding the preview
2011-08-15 18:57:51 -04:00
Alberto Ruiz
f59b74622d
GtkFontChooser: Adding the alignment to the selection
2011-08-15 18:57:51 -04:00
Alberto Ruiz
0c721d919c
GtkFontChooser: Create alignment for the preview entry
2011-08-15 18:57:51 -04:00
Alberto Ruiz
1b302d3fad
GtkFontChooser: Added main treeview
2011-08-15 18:57:51 -04:00
Alberto Ruiz
d46d1d7fcd
GtkFontChooser: Avoid using show_all explicitely
2011-08-15 18:57:50 -04:00
Alberto Ruiz
810eda9cca
GtkFontChooser: Create fundamental widgets for the new GtkFontSelection
2011-08-15 18:57:50 -04:00
Alberto Ruiz
9702e7c456
GtkFontChooser: Add private members to GtkFontSelectionPrivate
2011-08-15 18:57:50 -04:00
Alberto Ruiz
4f38ff9757
GtkFontChooser: Remove all cruft from the current GtkFontSelection implementation and start a new widget
2011-08-15 18:57:50 -04:00
Jesse van den Kieboom
99686a2fef
Added gtk_text_iter_assign API
...
https://bugzilla.gnome.org/show_bug.cgi?id=645258
2011-08-15 15:29:23 +02:00
Paolo Borelli
508353fd15
Do not manually create empty label
...
gtk_notebook_update_labels will take care of creating it if needed.
2011-08-15 15:08:28 +02:00
Laszlo Pandy
991b782b75
Fix incomplete > entities in docs.
2011-08-13 15:22:44 +02:00
Cosimo Cecchi
9d269bd7f2
settings: use the right RC parser for the gtk-visible-focus setting
...
Without the parser the property the property won't be settable by themes
using settings.ini
2011-08-11 15:38:45 +02:00
Jürg Billeter
c7bcef426b
widget: Add transfer annotation for gtk_widget_set_window
...
gtk_widget_set_window does not add any reference to the window and
unrealize will destroy it.
2011-08-11 12:35:46 +02:00
Dan Winship
c4a5c99074
Fix cut-and-paste error in GtkEntryAccessible/GtkLabelAccessible
...
The y position of the character depends on the window's y coordinate,
not its x coordinate.
2011-08-10 15:19:56 -04:00
Matthias Clasen
2ba9c4b4a7
Make focus rectangles optional
...
This commit introduces a new setting, gtk-visible-focus, backed
by the Gtk/VisibleFocus X setting. Its three values control how
focus rectangles are displayed.
'always' is equivalent to the traditional GTK+ behaviour of always
rendering focus rectangles.
'never' does what it says, and is intended for keyboardless
situations, e.g. tablets.
'automatic' hides focus rectangles initially, until the user
interacts with the keyboard, at which point focus rectangles
become visible.
https://bugzilla.gnome.org/show_bug.cgi?id=649567
2011-08-10 16:34:20 +02:00
Rachid BM
99080af3ee
Language improvements
...
Changed rgba to uppercase (Only in UI strings)
Fixed the typo: tolevel -> toplevel
2011-08-10 12:15:32 +01:00
Cosimo Cecchi
7e22b46c1f
combobox: add a "combobox-entry" style class for comboboxes with entries
...
This way themes can use GtkComboBox.combobox-entry to match that
specific case, and GtkComboBox.combobox-entry .button to match the
button/arrow side of the widget.
2011-08-09 16:08:00 +02:00
Matthias Clasen
d324a99454
Fix entry drawing in the presence of margins
...
Margins need to be taken into account when comparing requisitions
and allocations, which GtkEntry (and subclasses) do for some reason.
2011-08-09 15:12:21 +02:00
Matthias Clasen
17f99f663f
GtkGrid: Add a way to insert rows or columns
...
This is useful functionality that makes it easier to insert
things in the middle of an already populated grid.
Bug 653817
2011-08-08 13:13:48 +02:00
Will Thompson
5bfef8c80a
GtkAppChooser: improve grammar in short_description
...
https://bugzilla.gnome.org/show_bug.cgi?id=656098
2011-08-07 12:12:11 +02:00
Ignacio Casal Quinteiro
92e1d27475
Fix warning
2011-08-06 19:02:16 +02:00
Federico Mena Quintero
d4b992506a
Merge branch 'bgo593793-filechooser-recent-folders-master'
2011-08-02 11:46:05 -05:00
Federico Mena Quintero
2485273247
bgo#655822 - Put back the expand-folders schema in gsettings
...
Apparently schemas are part of the ABI contract; running apps crash if a
schema disapppears and they happen to access it.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-08-02 11:45:47 -05:00
Pavel Holejsovsky
bb09982b66
Avoid introspection scanner warning on GtkPlug and GtkSocket
...
Make sure that sources with annotations are included into the list of
sources passed to introspection scanner.
2011-08-01 11:09:57 +02:00
Kristian Rietveld
dca9db124b
Bug 655545 - condition can never be true in gtk_tree_view_real_set_cursor
...
Spotted by Ben Pfaff.
2011-07-30 23:01:38 +02:00
Federico Mena Quintero
af00ca81e1
Merge branch 'bgo593793-filechooser-recent-folders-master'
2011-07-27 18:56:39 -05:00
Federico Mena Quintero
9112cb4dfa
Set the location mode when changing the operation mode
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:56:27 -05:00
Federico Mena Quintero
80d0efd94a
Switch to OPERATION_MODE_BROWSE when switching to volume or file shortcuts
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:56:22 -05:00
Federico Mena Quintero
ff95a79d98
Remove the unused, initial-text logic from the location entry
...
Years ago, when the location entry only appeared in a popup window, it used to appear
populated with the current folder's path. We had some logic to do this, but since now
the location entry appears in the main dialog, we can do away with that old code.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:56:18 -05:00
Federico Mena Quintero
fa2e287687
Create the location_entry in a single function
...
We had duplicated code to create the entry in two cases, for Open and for Save modes.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:56:15 -05:00
Federico Mena Quintero
9ed65c5620
Only unset the entry's contents if the entry exists
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:56:11 -05:00
Federico Mena Quintero
6c31de64b3
Discard the search widgets in a separate function
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:56:06 -05:00
Federico Mena Quintero
3de864cfff
Move the widgets above the hpaned to their own box
...
This way we can re-create the contents of that box easily without disrupting
the rest of the file chooser.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:56:02 -05:00
Federico Mena Quintero
c1fbdb4fd0
Make operation_mode_set() handle SEARCH and RECENT modes as well
...
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:55:58 -05:00
Federico Mena Quintero
cccf35f862
Centralize changing the operation mode in operation_mode_set()
...
This will be the central function to switch operation modes: stop searches or the recent-files
process; switch widgets, etc.
We factor out the common code from recent_switch_to_browse_mode() and search_switch_to_browse_mode(),
and remove those functions. All the code that switched modes by hand now calls
the central operation_mode_set().
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:55:54 -05:00
Federico Mena Quintero
7726276fe9
Remove duplicated code from *_switch_to_browse_mode()
...
That code indeed lives in operation_mode_stop(), so use it instead of
having inlined duplicates.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:55:50 -05:00
Federico Mena Quintero
9e6e6575de
Rename stop_operation() to operation_mode_stop()
...
We'll now prefix functions to change the impl->operation_mode with 'operation_mode',
for clarity.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:55:45 -05:00
Federico Mena Quintero
8962e0383f
Save selection to recent-files in the asynchronous Save cases
...
Various paths in SAVE or CREATE_FOLDER return from ::should_respond() but
leave an asynchronous process running. This process checks some things
in the user's selection, for example, 'does the file exist, and if so
do we need to bring up an overwrite-confirmation dialog?'. When these
async processes complete *and* it is indeed time for the dialog to
be terminated (via the response-requested signal), we also need to
save the selection to the recently-used list - as ::should_respond() does
by itself in the cases when it can request a response immediately.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:54:52 -05:00
Federico Mena Quintero
7985ab786d
Log to recent-files when confirming the file chooser
...
To make life easier for users, when apps don't properly update the recently-used list
after choosing a file, we now do that directly from the file chooser.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:54:42 -05:00
Kristian Rietveld
8d69f3daf2
Bug 508601 - Copying from GTK+ applications causes crash
...
In GtkClipboardOwner pasteboard:provideDataForType do not call
_gtk_quartz_set_selection_data_for_pasteboard() is selection_data.length
is smaller than 0. The function relies on having a positive length,
since it stores the length in a uint ...
2011-07-25 22:05:52 +02:00
Matthias Clasen
093612a46c
Use G_DEFINE_TYPE for GtkIconViewItemAccessible
2011-07-25 00:46:34 -04:00
Matthias Clasen
2c6c0fe329
Minor cleanups
2011-07-25 00:34:08 -04:00
Matthias Clasen
a4560cdfbb
Rework AtkText implementation
...
Use a PangoLayout, instead of storing a text buffer per item.
And use gtkpango api instead of implementing it all ourselves.
2011-07-25 00:27:42 -04:00
Matthias Clasen
26a040e81b
Drop some grandiosity from the AtkAction implementation
...
There is only one action here, no need to pretend otherwise.
2011-07-24 23:59:00 -04:00
Matthias Clasen
625947f9f2
Use G_DEFINE_TYPE for GtkIconViewAccessible
2011-07-24 23:48:41 -04:00
Matthias Clasen
fadd58a0fb
Drop GtkIconViewAccessiblePrivate
...
Just put the members in GtkIconViewAccessible itself.
2011-07-24 23:28:57 -04:00
Matthias Clasen
8a544d54ea
Move GtkBuildable implementation up before accessibility
...
Just code rearrangement, no other changes.
2011-07-24 23:04:02 -04:00
Matthias Clasen
2983f3fc14
Update gtk_widget_get_accessible() docs
...
Don't mention GTK_MODULES for loading a11y implementations
anymore.
2011-07-23 21:28:29 -04:00
Felix Riemann
e8486fdf71
gtkstyleproperty: fix small memory leak
...
The released value is a string array and thus g_free is not sufficient.
https://bugzilla.gnome.org/show_bug.cgi?id=655173
2011-07-23 21:40:59 +02:00
Matthias Clasen
2937a875a0
Ditch some long dead perl cruft
2011-07-23 13:44:45 -04:00
Matthias Clasen
c3be60198f
Towards a working distcheck
2011-07-23 10:12:55 -04:00
Rico Tzschichholz
ecd5f73dd7
build: Fix makefile for new location of test image
2011-07-23 12:27:45 +02:00
Matthias Clasen
ec72283a65
some minor doc fixes
2011-07-22 22:00:34 -04:00
Matthias Clasen
f7e927b93c
Try to make the docs build again
...
After some searching, it turns out that gtk-doc now interprets
markdown, and can no longer accept '-' in the docs without making
a mess. I hope that this does not affect more places in more
subtle ways.
2011-07-22 21:54:08 -04:00
Benjamin Otte
d82aeb8245
tests: Fix stylecontext test that we changed semantics for
...
We don't have different priorities for superclasses anymore.
2011-07-23 01:24:07 +02:00
Philip Withnall
0b4d8433d4
Bug 654266 — No longer possible to set empty text on a GtkProgressBar
...
Change the semantics of GtkProgressBar:text slightly so that it behaves as
it did before GTK+ 3.
Closes: bgo#654266
2011-07-23 00:09:30 +01:00
Andre Klapper
91706f7883
Don't use deprecated G_UNICODE_COMBINING_MARK
2011-07-22 19:56:49 +02:00
Benjamin Otte
d56e8c8e54
tests: Move declaration tests to new test infrastructure
...
This way, we can test more feature of them, in particular check for
different errors, which were causing test failures.
2011-07-21 02:43:54 +02:00
Benjamin Otte
47635a2434
themingengine: Return NULL for nonexistant theming engines
...
his also makes the function conform to its documentation.
2011-07-21 02:43:54 +02:00
Benjamin Otte
9062060304
css: Don't print both border-image-repeat values when they're identical
2011-07-21 02:43:54 +02:00
Benjamin Otte
72bc10a61c
css: Ensure that font shorthand parsing sets font name and size
2011-07-21 02:43:54 +02:00
Benjamin Otte
5a1e1579b3
styleproperty: dump image surfaces as PNG data URLs
...
We're not able to load that (yet?), but it's useful for producing
diffable test dumps.
2011-07-21 02:43:54 +02:00
Andrea Cimitan
b3f03d092f
roundedbox: Clamp border radius to box size
...
Note that clamping in rounded_box_grow() is not necessary as that
function cannot lead to overlap unless the rounded box was overlapping
previously.
https://bugzilla.gnome.org/show_bug.cgi?id=655009
2011-07-21 02:43:54 +02:00
Benjamin Otte
a02b82056a
tests: Remove unused file from EXTRA_DIST
2011-07-21 02:43:54 +02:00
Benjamin Otte
b0b287f7b5
themingengine: Use the default way of indicating privates
2011-07-21 02:43:54 +02:00
Benjamin Otte
9e36bea907
styleproperty: An unnamed engine equals the default engine
2011-07-21 02:43:54 +02:00
Benjamin Otte
d314709af6
tests: Declare previously invalid CSS as valid now
...
The CSS is valid, it might just not work (though most of it will for
siblings).
2011-07-21 02:43:54 +02:00
Benjamin Otte
4f5e69fa2c
tests: Fix whitespace between url and (
...
It's not allowed according to CSS (and browsers).
2011-07-21 02:43:54 +02:00
Benjamin Otte
5a1f371e12
cssprovider: Fix names for first and last child pseudo class
...
The correct name is :first-child, not :first
2011-07-21 02:43:53 +02:00
Ryan Lortie
4ead7b69ea
Switch to g_format_size()
...
g_format_size_for_display() has been deprecated in GLib and replaced with
g_format_size(). Follow that change.
2011-07-20 20:22:26 +02:00
Benjamin Otte
75a43bb40c
tests: Move empty css parser test to new CSS tests
2011-07-20 02:36:44 +02:00
Benjamin Otte
15674c5bd4
tests: Move stylecontext CSS tests
...
Use the new CSS infrastructure for part of the old CSS tests. This way
we can probably check for warning messages such as deprecations.
2011-07-20 02:36:44 +02:00
Benjamin Otte
1a763044fe
cssprovider: Emit an error when parsing a binding fails
2011-07-20 02:36:44 +02:00
Benjamin Otte
b8465d289b
cssprovider: Get the location right for semicolon warnings
2011-07-20 02:36:44 +02:00
Benjamin Otte
5eefc37b3f
cssprovider: @import <string> is valid CSS
...
The parser rewrite insisted on @import url(<string>) syntax, but CSS
xplicitly allows omitting the url string.
2011-07-20 02:36:44 +02:00
Benjamin Otte
014165151f
css: Use the correct free function
2011-07-20 02:36:44 +02:00
Benjamin Otte
ebadb36962
notebook: Remove unused private member variable
2011-07-20 02:36:44 +02:00
Benjamin Otte
1cdb47d960
notebook: Remove the homogenous private member variable
...
It's unused and therefor always FALSE, so we can remove the parts of the
code that branch based on it.
2011-07-19 12:53:06 +02:00
Benjamin Otte
6aa000f65b
styleproperties: Add unset functions for shorthands
...
This fixes calls to gtk_style_properties_unset_property() for
shorthand properties.
https://bugzilla.gnome.org/show_bug.cgi?id=654678
2011-07-19 11:58:22 +02:00
Benjamin Otte
68ebc77a9a
styleproperties: Add an unset vfunc to style properties
...
This makes unsetting work for shorthands.
2011-07-19 11:58:22 +02:00
Philip Withnall
fd705ce7c7
progressbar: Fix a signed/unsigned comparison
2011-07-18 19:35:02 +01:00
Benjamin Otte
b0e836e231
a11y: Merge gtksubmenuitem into gtkmenuitem
...
The reason why they were separate is historic, it's not useful to keep
the distinction.
2011-07-18 19:41:07 +02:00
Benjamin Otte
9306b266a0
a11y: Rename checksubmenuitem to checkmenuitem
2011-07-18 19:21:17 +02:00
Benjamin Otte
77f411c77a
a11y: Remove gtkcheckmneuitemaccessible.[ch]
...
COde uses gtkchecksubmenuitemaccessible exclusively now. And I totally
dig these long finger-twisting names.
2011-07-18 19:05:28 +02:00
Benjamin Otte
fa16a54b21
a11y: Rename radiosubmenuitem to radiomenuitem
2011-07-18 19:01:40 +02:00
Benjamin Otte
438b78a27d
a11y: Remove gtkradiomenuitemaccessible.[ch]
...
We use gtkradiosubmenuitemaccessible exclusively these days.
2011-07-18 18:47:12 +02:00
Benjamin Otte
d5ef8448bb
checkbutton: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:51 +02:00
Benjamin Otte
0c9b046af0
accellabel: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:51 +02:00
Benjamin Otte
f2626b6183
menubar: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:51 +02:00
Benjamin Otte
9c30ae02ee
toolbar: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
96245d4efb
viewport: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
d9bfa563d0
tearoffmenuitem: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
480b5862d4
plug: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
27f96820c8
fontsel: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
c40875ad51
messagedialog: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
6379faaa90
dialog: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
2e570136f5
colorsel: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
299b3bed96
filechooserdialog: Use gtk_widget_class_set_accessible_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
9c81336830
widget: Reset the accessible role when a new accessible type is set
...
We want the role to be kept in the accessible object. Using
gtk_widget_class_set_accessible_role() is only meant as a quick
workaround to requiring subclassing of the accessibles in the quite
common case where a subclass does not change the accessible
implementation at all and only has a different role.
2011-07-18 18:30:50 +02:00
Benjamin Otte
b61a200036
separatormenuitem: Use gtk_widget_class_accessible_set_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
094785bd68
separator: Use gtk_widget_class_accessible_set_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
017d02b9de
hsv: Use gtk_widget_class_accessible_set_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
8815ccf5c4
calendar: Use gtk_widget_class_accessible_set_role()
2011-07-18 18:30:50 +02:00
Benjamin Otte
b17ad131ea
API: Add gtk_widget_class_set_accessible_role()
...
Easy access to modifying the roles of subclasses, as this is a thing
that commonly changes for various subclasses.
2011-07-18 18:30:49 +02:00
Benjamin Otte
c0df6f9622
menushell: Use GtkMenuShellAccessible as a11y object
...
Previously it was only used by GtkMenuBar, and that's a naming mismatch.
2011-07-18 18:30:49 +02:00
Benjamin Otte
54e1caa428
a11y: Remove separator menu item special case
...
gtkseparator.c already takes care of this case.
2011-07-18 18:30:49 +02:00
Benjamin Otte
1f4b524558
assistant: Use gtk_container_remove() when removing pages
...
Ensures that we properly emit the "remove" signal.
2011-07-18 10:54:57 +02:00
Matthias Clasen
3bfa69fa53
Don't use object data for layer
...
Just add a regular member in GtkWidgetAccessible for it.
2011-07-17 23:17:38 -04:00
Matthias Clasen
6d33c783d0
Get rid of the focus_gtk vfunc
...
Only GtkWidgetAccessible and GtkWindowAccessible had implementations,
and they could easily be converted to focus_event handlers.
2011-07-17 23:04:00 -04:00
Matthias Clasen
2b5140c974
Avoid a compiler warning
2011-07-17 23:03:34 -04:00
Matthias Clasen
095ea84611
Make destroying assistants work again
...
During destruction, we need to be careful to not ask the content
notebook to remove itself from itself.
2011-07-17 19:35:37 -04:00
Matthias Clasen
e756b2e50d
Use canonical names
...
Use canonical names for both signals and properties.
2011-07-17 18:52:37 -04:00
Matthias Clasen
dc2ae6c0a5
Don't emit a nonexisting signal
...
The signal is called "popdown", not "podown".
2011-07-17 18:45:46 -04:00
Matthias Clasen
102faa3037
GtkLabelAccessible: avoid extra selection-changed emissions
...
This copies the same code that the entry accessible uses
to check for selection changes.
https://bugzilla.gnome.org/show_bug.cgi?id=654428
2011-07-16 09:44:02 -04:00
Florian Müllner
7741f5a09a
theming-engine: Adjust register_property() to recent glib change
...
GParamSpec now uses an intern'ed string for 'name', so the code
in gtk_theming_engine_register_property() which prefixes the name
with a namespace has to be adjusted.
https://bugzilla.gnome.org/show_bug.cgi?id=654695
2011-07-15 20:50:26 +02:00
Matthias Clasen
1f264ddb4b
Don't use deprecated style api
...
gtk_widget_modify_font() has been superseded by
gtk_widget_override_font(), so use that in GtkMessageDialog.
2011-07-15 11:07:38 -04:00
Matthias Clasen
3cc22eed44
Add some GtkAccessible documentation
...
Describe the current thinking about how to provide
3rd party accessible implementations.
2011-07-14 19:50:21 -04:00
Matthias Clasen
7c2414ec7e
Drop private GtkAccessible api
...
We no longer use factories anywhere.
2011-07-14 19:42:12 -04:00
Matthias Clasen
3e05518881
Drop unneeded includes
...
We no longer use the private GtkAccessible api here.
2011-07-14 19:40:50 -04:00
Matthias Clasen
d8c00cd537
Revert "Add a getter for the accessible type of a widget class"
...
This reverts commit 9a212b3120
.
2011-07-14 19:28:07 -04:00
Kristian Rietveld
88a18a28d5
quartz: Remove call to deprecated gdk_pointer_ungrab
2011-07-14 14:22:38 +02:00
John Ralls
86794ce008
Bug 653450 - gtkfilechooser crashes when added favorite
...
Ensure that display is set during drag-and-drop, and that string lists'
memory is zeroed after allocation to prevent g_strfreev() from
over-running.
2011-07-14 14:17:51 +02:00
Chun-wei Fan
5ab8120689
Added VS projects for a11y and libgail-util
...
-Added projects to compile the a11y portion of GTK+. This is now necessary
as a11y/GAIL is now integrated into the main GTK+ library, and it must
be built before compiling/linking GTK+. This project is done like the
GDK/GTK+ projects, where the source file listings for the VS2008/2010
projects are fed into templates (.vcprojin, .vcxprojin and
.vcxproj.filtersin) during 'make dist'
-Added projects to compile the libgail-util DLL (no templates for this
as this does not have source files added/removed often)
-Added the new projects into distribution, and headers, DLLs and .LIB files
into the "install" stage
2011-07-14 11:53:36 +08:00
Matthias Clasen
9a212b3120
Add a getter for the accessible type of a widget class
...
This will be necessary to port out-of-tree a11y implementations
from the atk object factory approach to this new way of doing
things.
2011-07-13 23:02:25 -04:00
Federico Mena Quintero
b53f602891
Save selection to recent-files in the asynchronous Save cases
...
Various paths in SAVE or CREATE_FOLDER return from ::should_respond() but
leave an asynchronous process running. This process checks some things
in the user's selection, for example, 'does the file exist, and if so
do we need to bring up an overwrite-confirmation dialog?'. When these
async processes complete *and* it is indeed time for the dialog to
be terminated (via the response-requested signal), we also need to
save the selection to the recently-used list - as ::should_respond() does
by itself in the cases when it can request a response immediately.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-13 16:39:12 -05:00
Chun-wei Fan
a32be5d7e6
Don't include unistd.h unconditionally
2011-07-13 15:27:28 +08:00
Federico Mena Quintero
f1ca0eebc6
Log to recent-files when confirming the file chooser
...
To make life easier for users, when apps don't properly update the recently-used list
after choosing a file, we now do that directly from the file chooser.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-12 11:36:19 -05:00
Matthias Clasen
5556ae9f80
Don't install any gail headers
...
There is no public API here.
2011-07-11 23:52:22 -04:00
Matthias Clasen
91bfe9f0c0
Make gtk_container_remove work for assistants
2011-07-11 23:12:55 -04:00
Matthias Clasen
bf70fbb696
Drop an unneeded include
2011-07-11 23:12:55 -04:00
Matthias Clasen
86fcb8b66f
Add gtk_assistant_remove_page
...
This was suspiciously missing, considering we have the usual
append/prepend/insert_page methods.
2011-07-11 23:12:55 -04:00
Jonathan Matthew
ad9da2727d
GMountOperation::show-processes support for OpenBSD using kvm(3)
2011-07-12 07:56:01 +10:00
Benjamin Otte
17d5afcae2
a11y: Only advertise action if menuitems are selectable
...
There's no "click" action for separatormenuitems, for example.
2011-07-11 03:08:32 +02:00
Benjamin Otte
a82cbf29a2
a11y: Don't advertise ROLE_MENU in submenuitems
...
We use submenuitems for all menuitems now. So they shouldn't be all
advertised as menus. For the ones that do have submenus, we still
advertise ROLE_MENU per the last patch.
2011-07-11 02:51:43 +02:00
Benjamin Otte
8f9493ddf2
a11y: Make menuitem accessible return ROLE_MENU when it has a submenu
...
Otherwise keep using the role set via atk_object_set_role().
2011-07-11 02:51:43 +02:00
Matthias Clasen
07380c1e64
Make all of a11y/ compile with -Wshadow
2011-07-10 00:24:26 -04:00
Matthias Clasen
634e95eba1
Avoid more shadowing warnings
2011-07-10 00:20:17 -04:00
Matthias Clasen
88312319c4
Avoid more compiler warnings
...
Turns out link is a shadow-happy name, too.
2011-07-10 00:16:53 -04:00
Matthias Clasen
1803e1b57c
Avoid compiler warnings
...
The text variable in gtk_label_accessible_get_selection was
shadowing a parameter of the same name.
2011-07-10 00:10:54 -04:00
Matthias Clasen
9f58645eca
Avoid compiler warnings
...
The obj variable in gtk_notebook_accessible_notify_gtk was shadowing
the parameter of the same name.
2011-07-10 00:10:20 -04:00
Matthias Clasen
a20c7ed214
Avoid unnecessary includes
...
Including string.h makes the compiler complain about parameters
and variables called index, which is not nice.
2011-07-10 00:10:15 -04:00
Matthias Clasen
ddfa756ac7
Convert GailCellParent to GtkCellAccessibleParent
2011-07-09 23:57:16 -04:00
Matthias Clasen
4e5629bed1
Convert GailTextCell to GtkTextCellAccessible
2011-07-09 23:57:16 -04:00
Matthias Clasen
7ddf0dff8f
Convert GailImageCell to GtkImageCellAccessible
2011-07-09 23:57:16 -04:00
Matthias Clasen
920c1c4c83
Convert GailRendererCell to GtkRendererCellAccessible
2011-07-09 23:57:16 -04:00
Matthias Clasen
3688c1a2d3
Convert GailBooleanCell to GtkBooleanCellAccessible
...
Including assorted cleanups and _-prefixing of exported API.
2011-07-09 23:57:16 -04:00
Matthias Clasen
1da67a2298
Convert GailContainerCell to GtkContainerCellAccessible
...
Including assorted cleanups and _-prefixing of exported API.
2011-07-09 23:57:16 -04:00
Matthias Clasen
07461459d4
Convert GailCell to GtkCellAccessible
...
Including _-prefixing the API to reduce unwanted exports.
2011-07-09 23:57:16 -04:00
Matthew Barnes
4d17ff973e
GtkAssistant doesn't notice destroyed pages
...
Listen for GtkContainer::remove signals from the internal notebook.
https://bugzilla.gnome.org/show_bug.cgi?id=653705
2011-07-09 17:56:03 -04:00
Matthias Clasen
3846a59bab
Drop a few more unwanted exports
...
Remaining now are just cell accessibles.
2011-07-09 16:43:39 -04:00
Matthias Clasen
d98622b2ea
Reduce the number of unwanted exports
...
_-prefix most of the get_type functions in a11y/.
There are still some more symbols left.
2011-07-09 16:32:40 -04:00
Matthias Clasen
671565245e
Another forgotten static
2011-07-09 16:04:45 -04:00
Matthias Clasen
88537fb4cc
Another forgotten static
2011-07-09 16:04:13 -04:00
Matthias Clasen
dc8d64d6f2
Add a forgotten static
2011-07-09 15:33:28 -04:00
Matthias Clasen
2aeb7042d0
Drop the fake GailUtil subclass
...
Since it is not a subclass at all. Instead, just have a function
that overrides the vfuncs in AtkUtilClass.
2011-07-09 15:33:28 -04:00
Benjamin Otte
ccaa0af7d0
filechooser: Fix set-but-not-used warning from gcc
2011-07-09 21:24:41 +02:00
Benjamin Otte
05eb4113d9
a11y: Fix warnings when removing widgets that don't have accessibles
...
The remove handler would not check that removed widgets do indeed have
an accessible associated with them and would happily run all the removal
code with a NULL object. Not good.
2011-07-09 21:24:09 +02:00
Ignacio Casal Quinteiro
06b1362999
gtkaccelmap: the data gtk_accel_map_foreach needs to be annotated as allow-none
2011-07-09 12:54:23 +02:00
Matthias Clasen
182b6f7a3c
This is more horrible than I had realized
...
Due to tragic misunderstandings at the birth of ATK, AtkUtil
can't actually be properly derived. Instead, each implementation
has to poke its vfuncs directly into the AtkUtilClass struct.
So painful to have shipped this stuff for 10 years...
2011-07-08 23:20:06 -04:00
Matthias Clasen
d7ded58f51
Clean up gailutil.c a bit
2011-07-08 23:05:51 -04:00
Matthias Clasen
4c76d9fe31
Separate GailUtil and GailMisc
...
Not sure how these ended up as siamese twins in the same
source file. Of course, separating them doesn't make them
any more beautiful.
2011-07-08 22:52:03 -04:00
Matthias Clasen
56fb725a7e
Convert GailToplevel to GtkToplevelAccessible
2011-07-08 22:39:00 -04:00
Matthias Clasen
9979e2a443
Drop remaining uses of gail_misc api
...
Fold them into their last remaining user, in gailtextcell.c
2011-07-08 22:03:13 -04:00
Matthias Clasen
64d3314a64
Drop now unused gail_misc API
2011-07-08 20:12:45 -04:00
Matthias Clasen
db1eeb0651
Drop gailtextutil from gtk/a11y
...
The last user was GailTextCell, and that can use gtk_pango
api instead.
2011-07-08 18:41:01 -04:00
Matthias Clasen
a7190d11c2
No longer need to strip the decorations when generating gtk.def, either
2011-07-08 18:41:01 -04:00
Matthias Clasen
2cdac4704c
gtk.symbols: remove remaining G_GNUC_ decorations
...
These are no longer used for anything
2011-07-08 18:41:01 -04:00
Matthias Clasen
77db52ac9a
We're no longer a module
...
And we don't support not loading the module anymore, either.
So take out the code that looks at environment variables for
that purpose, and don't print a misleading message about
module loading.
2011-07-08 16:37:07 -04:00
Matthias Clasen
fabc5a9117
gail_misc_add_attribute no longer used outside gailmisc.c
...
This reduces the number of unwanted exported gail symbols
from 90 to 89. Still some way to go...
2011-07-08 16:31:48 -04:00
Federico Mena Quintero
b80fb88aff
Merge bgo593793-filechooser-recent-folders-master branch.
...
The file chooser now starts up in recent-files mode, or in recent-folders mode,
if the caller didn't set a current_folder on it. Setting a current_folder is
now discouraged, so that the file chooser can have a chance of presenting
useful locations to the user.
See https://live.gnome.org/DocumentCentricGnome/Help%20the%20user%20choose%20a%20place%20to%20put%20a%20new%20file
for the rationale behind these changes.
2011-07-08 11:43:32 -05:00
Cosimo Cecchi
1fdfb18c37
iconview: make it possible for selected cells to render a border
...
Call gtk_render_frame() after gtk_render_background() there.
https://bugzilla.gnome.org/show_bug.cgi?id=654179
2011-07-08 11:36:04 -04:00
Johan Dahlin
a47528fd59
Clarify that gtk_builder_connect_signals can only be connected once
2011-07-07 15:41:29 -03:00
Matthias Clasen
a38d119f16
Drop gail_misc_buffer_get_run_attributes
...
Instead fold the code into the sole caller and get rid
of gailmisc usage in the text view accessible altogether.
2011-07-06 23:19:40 -04:00
Matthias Clasen
d1b0ae62a5
Drop an unneeded include
...
One step close to dropping gailmisc.
2011-07-06 23:18:52 -04:00
Benjamin Otte
a24ec1583b
gtkpango: Count letters properly
...
The code was using the wrong variable and that then caused assertions
2011-07-07 03:37:52 +02:00
Benjamin Otte
15ab20fdfb
a11y: Make submenu code handle non-existing submenus
...
As we're going to merge the two accessibles for submenus, we need to
make sure the code that insisted on submenus can handle the case where
no submenu exists.
2011-07-06 20:55:11 +02:00
Benjamin Otte
d5dad3422b
a11y: Fix leaking of state sets
2011-07-06 20:48:35 +02:00
Benjamin Otte
7b2f8949dd
styleproperty: Fix leak
2011-07-06 20:41:31 +02:00
Benjamin Otte
552113131c
menuitems: Use submenuitem accessible exclusively
...
Submenus can come and go, so we cannot use an accessible that doesn't
allow for that.
Also, this fixes a rather large refleak.
2011-07-06 18:47:00 +02:00
Benjamin Otte
70b8f8f7ef
assistant: Use gtk_widget_class_set_accessible_type()
...
Less code and no leaks!
2011-07-06 18:47:00 +02:00
Javier Jardón
32e00d1f43
Use AM_CPPFLAGS instead the obsolete INCLUDES
2011-07-06 15:58:32 +01:00
Benjamin Otte
30930e643f
a11y: Redo TextView cursor/selection signal handling
...
As part of the removal of idles, redo how we emit signals on the
accessible. Should work as good or better than before, but with a lot
less code.
2011-07-06 16:50:09 +02:00
Benjamin Otte
768b192ddb
modules: Blacklist gail
...
And print a message when somebody has it enabled that indicates that
something is wrong but doesn't sound too scary.
2011-07-06 16:50:09 +02:00
Benjamin Otte
4abbe4cb52
a11y: Use the canonical way to connect to signals
...
No functional changes at all, the generated code should in fact be
identical.
2011-07-06 16:40:05 +02:00
Benjamin Otte
eeae39d359
a11y: Simplify code
2011-07-06 16:40:05 +02:00
Benjamin Otte
659d24c9ab
a11y: Remove idle handler for switch action handling
2011-07-06 16:40:04 +02:00
Benjamin Otte
8efc350127
a11y: Remove set_description handling from GtkSwitch
...
The function is unused in AT-SPI.
2011-07-06 16:40:04 +02:00
Benjamin Otte
ccbe6c816b
range: Do not use idles to trigger actions
2011-07-06 16:40:04 +02:00
Benjamin Otte
2870b58638
a11y: Don't use an idle handler for entry actions
2011-07-06 16:40:04 +02:00
Rico Tzschichholz
2c51d76c1f
Fix two typos in Makefiles
2011-07-06 16:33:55 +02:00
Javier Jardon
8a84056d0a
gtktreeviewaccessible: free the string in the correct position
2011-07-06 14:36:29 +01:00
Javier Jardon
ad0c0b8eb3
Do not initialize the priv pointer before check type
2011-07-06 14:25:06 +01:00
Matthias Clasen
ba0bc468d6
Fix the build
...
I didn't pay enough attention when merging, it seems.
2011-07-05 16:57:46 -04:00
Matthias Clasen
521807f33d
Drop the factory from the icon view accessible
2011-07-05 16:10:26 -04:00
Matthias Clasen
9f88efd2bb
Drop the factory from GtkAssistantAccessible
2011-07-05 16:10:26 -04:00
Matthias Clasen
38f34f4f6f
GtkSeparatorMenuItem: Drop the accessible factory
2011-07-05 16:10:26 -04:00
Matthias Clasen
2980659ab1
Add api for setting the layer
...
Add api for setting the component layer, instead of open-coding
the object data key, and use it.
2011-07-05 16:10:26 -04:00
Matthias Clasen
e1463ab57c
Silence compiler warnings
2011-07-05 16:10:26 -04:00
Matthias Clasen
5d90ca35c2
Set accessible parents of notebook children
...
Explicitly set the notebook page object as the accessible parent
of the page, otherwise, AtkObject follows the widget parents chain
and makes the notebook accessible the parent.
2011-07-05 16:10:26 -04:00
Matthias Clasen
b83122dc05
Drop use of factories for cell accessibles
2011-07-05 16:10:26 -04:00
Matthias Clasen
5559242ea9
Change the toolkit name in GailUtil to 'gtk', too
2011-07-05 16:10:25 -04:00
Matthias Clasen
b61043dcfa
Change the toolkit attribute from gail to gtk
...
Update test results to match.
2011-07-05 16:10:25 -04:00
Matthias Clasen
eb81d45024
Move GtkSwitchAccessible to a11y/
2011-07-05 16:10:25 -04:00
Matthias Clasen
e6251f0248
Move GtkSpinnerAccessible to a11y/
2011-07-05 16:10:25 -04:00
Matthias Clasen
f839379d01
Drop the atk_component_add/remove_focus_handler implementation
...
Instead, just connect to focus-event directly.
2011-07-05 16:09:57 -04:00
Matthias Clasen
775ccf39e7
Initial conversion of GailWidget to GtkWidgetAccessible
2011-07-05 16:09:57 -04:00
Matthias Clasen
89e57c6978
Convert GailContainer to GtkContainerAccessible
2011-07-05 16:08:57 -04:00
Matthias Clasen
64eec8a97a
Convert GailMenuShell to GtkMenuShellAccessible
2011-07-05 16:08:57 -04:00
Matthias Clasen
0e2f3271b9
Convert GailMenu to GtkMenuAccessible
2011-07-05 16:08:57 -04:00
Matthias Clasen
ed08baccd9
Convert GailWindow to GtkWindowAccessible
...
While doing this, drop the get_mdi_zorder implementation
that really should come from the window manager side. Dropping
this saves some 500 lines.
2011-07-05 16:08:57 -04:00
Matthias Clasen
8432ea3574
Convert GailButton to GtkButtonAccessible
...
This drops the AtkText implementation, and also strips handling
of children out. Instead of listening for enter/leave/press/released,
just listen for state changes on the widget.
2011-07-05 16:08:57 -04:00
Matthias Clasen
a3113386df
Drop unneeded includes of gdkkeysyms.h
...
Just a minor cleanup; gtk.h includes this header in GTK+ 3.
2011-07-05 16:08:57 -04:00
Matthias Clasen
254538bf77
Drop unneeded includes gailtextutil.h
...
Almost done with getting rid of GailTextUtil.
2011-07-05 16:08:57 -04:00
Matthias Clasen
3459dc480a
Convert Gail(Sub)MenuItem to GtkAccessible classes
...
This is along the same lines as the previous commit,
with the same caveat.
2011-07-05 16:08:57 -04:00
Matthias Clasen
209a2d1ba0
Convert GailCheck(Sub)MenuItem to GtkAccessible classes
...
This is along the same lines as the previous commit,
with the same caveat.
2011-07-05 16:08:57 -04:00
Matthias Clasen
64b9599866
Convert GailRadio(Sub)MenuItem to GtkAccessible classes
...
The way submenus are handled here isn't really right, since
they can come and go at runtime, but I've left it like this
for now. A side-effect is that we can't use
gtk_widget_class_set_accessible_type here, but have to
override get_accessible.
2011-07-05 16:08:57 -04:00
Matthias Clasen
896769df69
Convert GailExpander to GtkExpanderAccessible
...
At the same time, drop the AtkText implementation.
Also, reintroduce a GtkBoxAccessible, since the previous
way of setting the role in get_accessible was affecting
GtkBox subclasses negatively.
Adjust expected test output to match.
2011-07-05 16:08:57 -04:00
Matthias Clasen
ff5eb4adfe
Convert GailStatusbar to GtkStatusbarAccessible
...
And drop the AtkText implementation at the same time.
Update test results to match.
2011-07-05 16:08:56 -04:00
Matthias Clasen
9a0fd43df2
Convert GailNotebookPage to GtkNotebookPageAccessible
...
At the same time, drop the AtkText implementation, and simplify
accordingly. Test output has been updated to match.
2011-07-05 16:08:56 -04:00
Matthias Clasen
8bb24a936f
Don't overwrite roles
...
Otherwise, every GtkBox subclass will have to override
get_accessible just to keep their roles.
2011-07-05 16:08:56 -04:00
Matthias Clasen
0bbe09a28e
Avoid excessive child_changed::added emissions
...
We are listening to page-added and emit child_changed::added
in response to that, so don't let the add_gtk handler add
extraneous extra signal emissions. This fixes the child-handling
test for GtkNotebook.
2011-07-05 16:08:56 -04:00
Matthias Clasen
318192b937
Convert GailNotebook to GtkNotebookAccessible
2011-07-05 16:08:56 -04:00
Matthias Clasen
6012f096c9
Convert GailTreeView to GtkTreeViewAccessible
...
Mostly code rearrangement and cleanup, but also a memory
leak fix in gtk_tree_view_accessible_get_column_description().
2011-07-05 16:08:56 -04:00
Matthias Clasen
7371e3f7cf
Convert GailComboBox to GtkComboBoxAccessible
2011-07-05 16:08:56 -04:00
Benjamin Otte
5d57716ef8
a11y: Make notebookpage emit child-added signal sync
...
Don't use an idle handler
2011-07-05 16:08:55 -04:00
Benjamin Otte
f59cb0e05d
a11y: Keep the gail notebook in the notebook page
...
We used to keep the GtkNotebook, but that causes issues at creation time
of the GailNotebook, when the GtkNotebook does not yet have an
accessible set and so it can't be queried.
2011-07-05 16:08:55 -04:00
Benjamin Otte
790d8e324b
a11y: Redo notebook page management
...
Previously, the code tried to track the indexes of the pages and keep
them up to date in a list and tracking the index in the
GtkNotebookPage. Now, we store the widget we are tracking in the
GailNotebookPage and keep a hash table of widget=>GailNotebookPage in the
GailNotebook. This frees us from the burden of tracking page changes.
2011-07-05 16:08:55 -04:00
Benjamin Otte
9cf9abd5b0
a11y: Redo notebok page lifetime management
...
It is now done by the GailNotebook. Previously it tried to do it itself.
Also, we now use GtkNotebook::page-removed to track the removal, as
opposed to child::parent-set.
2011-07-05 16:08:55 -04:00
Benjamin Otte
fdc40111f8
a11y: Remove idle handler from menuitem action
2011-07-05 16:08:55 -04:00
Benjamin Otte
3e49e2387c
a11y: Remove idle handler for expander actions
2011-07-05 16:08:55 -04:00
Benjamin Otte
55dec3a798
a11y: Remove idle handler for combo box action
2011-07-05 16:08:55 -04:00
Benjamin Otte
05d7260e19
a11y: Remove idle handler from GailButton
2011-07-05 16:08:55 -04:00
Benjamin Otte
7c00940470
a11y: Use gtk_button_clicked() to click a button.
...
Don't fiddle with events.
2011-07-05 16:08:55 -04:00
Benjamin Otte
6b02119bb1
a11y: Remove "press" and "release" actions from buttons
...
http://mail.gnome.org/archives/gnome-accessibility-devel/2011-June/msg00020.html
has some details about this.
The main problem is that the internal button states get fiddled with and
that is not a good idea to do from an AT.
Also update tests to reflect that.
2011-07-05 16:08:55 -04:00
Benjamin Otte
8e28e22bcf
a11y: Do actions on cells immediately
...
No idle handlers, please.
2011-07-05 16:08:55 -04:00
Benjamin Otte
52c0933bc0
a11y: Use simple code for window name change tracking
...
Remove idle handler and omit checking if the name really was changed.
ATs will either have to live with the name not really changoing or we
should check in GtkWindow.
2011-07-05 16:08:55 -04:00
Matthias Clasen
0b952dcc85
Emit the same changed_children details as everybody else
...
...if any of this was documented...
2011-07-05 16:08:55 -04:00
Matthias Clasen
48c3d8e1cf
Drop gail-private-macros.h
...
Nothing like obfuscating an early return behind a macro.
2011-07-05 16:08:55 -04:00
Matthias Clasen
53c90cebb2
Convert GailScrolledWindow to GtkScrolledWindowAccessible
2011-07-05 16:08:54 -04:00
Matthias Clasen
fecefc6cdf
Drop use of gail_return_if_fail
2011-07-05 16:08:54 -04:00
Matthias Clasen
3ab623e391
Fix a test crash
2011-07-05 16:08:54 -04:00
Matthias Clasen
f052710b85
Remove old files
2011-07-05 16:08:54 -04:00
Matthias Clasen
13e8bace97
Convert GailScaleButton to GtkScaleButtonAccessible
2011-07-05 16:08:54 -04:00
Matthias Clasen
583a5e4ea4
Drop another unused include
2011-07-05 16:08:54 -04:00
Matthias Clasen
a8b67d2064
Convert GailToggleButton to GtkToggleButtonAccessible
2011-07-05 16:08:54 -04:00
Matthias Clasen
f54cc70238
Nuke GailAdjustment
...
This was a fairly trivial wrapper around GtkAdjustment with
no particularly important reason for existence.
2011-07-05 16:08:54 -04:00
Matthias Clasen
1ff2076cdd
GtkAdjustment: add an auxiliary function
...
This is going to be used in AtkValue implementations.
2011-07-05 16:08:54 -04:00
Matthias Clasen
98918137a8
Drop an unneeded include
2011-07-05 16:08:54 -04:00
Matthias Clasen
e2847d9637
Convert GailRadioButton to GtkRadioButtonAccessible
2011-07-05 16:08:54 -04:00
Matthias Clasen
369b4a605e
GtkLabelAccessible: drop an unneeded include
...
We eventually want to get rid of gailmisc, so this is progress.
2011-07-05 16:08:54 -04:00
Matthias Clasen
c750139c85
Convert GailPaned to GtkPanedAccessible
2011-07-05 16:08:54 -04:00
Matthias Clasen
7f58482d4e
Convert GailRange to GtkRangeAccessible
2011-07-05 16:08:54 -04:00
Matthias Clasen
5f6ed88b7a
GtkTextViewAccessible: get rid of GailTextUtil usage
...
Instead, use the newly added GtkTextBuffer functions.
2011-07-05 16:08:53 -04:00
Matthias Clasen
aa291863bb
GtkTextBuffer: Add accessible api
...
These functions match closely to the AtkText interface;
they will be used in the GtkTextView accessible implementation.
Keep them private for now.
2011-07-05 16:08:53 -04:00
Matthias Clasen
d15319b717
Convert GailLinkButton to GtkLinkButtonAccessible
2011-07-05 16:08:53 -04:00
Matthias Clasen
2152424541
Convert GailImage to GtkImageAccessible
2011-07-05 16:08:53 -04:00
Matthias Clasen
a166051b60
Convert GailProgressBar to GtkProgressBarAccessible
2011-07-05 16:08:53 -04:00
Matthias Clasen
87195bc3cd
Convert GailScrollbar to GtkScrollbarAccessible
2011-07-05 16:08:53 -04:00
Matthias Clasen
a129392bb4
Convert GailFrame to GtkFrameAccessible
2011-07-05 16:08:53 -04:00
Matthias Clasen
1ef996ca3c
Remove GailBox
...
It was only setting a role, and we can do that just as well
in get_accessible().
2011-07-05 16:08:53 -04:00
Matthias Clasen
6aedf8f066
Remove GailCalendar
...
This was just setting a role, which we can do just as well
in get_accessible().
2011-07-05 16:08:10 -04:00
Matthias Clasen
4a7a667f5f
Drop GailSeparator
...
Instead, just set a suitable role on a GtkWidgetAccessible.
2011-07-05 16:08:10 -04:00
Matthias Clasen
ab8d94d195
Convert GailArrow to GtkArrowAccessible
2011-07-05 16:08:10 -04:00
Matthias Clasen
5fb86cf7da
Convert GailScale to GtkScaleAccessible
2011-07-05 16:08:10 -04:00
Benjamin Otte
a2dbfaf43d
stylecontext: #include <math.h> when using math functions
2011-07-05 16:08:10 -04:00
Matthias Clasen
ce793bd3ee
GtkTextviewAccessible: some initial cleanup and code rearrangement
2011-07-05 16:08:10 -04:00
Matthias Clasen
42cc6ad6c6
GtkEntryAccessible: Slight simplification of attribute handling
...
Make this use the same convenience function as is used elsewhwere.
2011-07-05 16:08:09 -04:00
Matthias Clasen
786ade734c
GtkLabelAccessible: avoid some pointless variables
2011-07-05 16:08:09 -04:00
Matthias Clasen
3f9d39ffce
Initial move GailTextView -> GtkTextViewAccessible
...
This just does the renaming, and drops the factory.
2011-07-05 16:08:09 -04:00
Benjamin Otte
a5b08ea931
gail: Remove AtkText implementation from GailScale
...
AtkText should only be implemented by text editing widgets. For just
giving out a small text string, AtkObject::name should be used.
2011-07-05 16:08:09 -04:00
Benjamin Otte
e510d5beba
cellareacontext: Don't ever return -1 for preferred sized
...
People don't check for -1 when computing size requests. Document this
new behavior.
2011-07-05 16:08:09 -04:00
Benjamin Otte
447fae8d4b
Revert 'Insert an LRM, to prevent -20 to come out as 20- in RTL'
...
Correct text direction for printing of doubles should be (and is) done
by printf() and friend and not enforced by GtkScale.
This reverts commit 5eb2aac947
https://bugzilla.gnome.org/show_bug.cgi?id=322571
2011-07-05 16:08:09 -04:00
Benjamin Otte
d0f0d4c77f
a11y: Export the printed value of a scale as the description.
2011-07-05 16:08:09 -04:00
Benjamin Otte
bbda677728
a11y: Remove AtkText implementation from GailMenuitem
...
AtkText should only be implemented by text editing widgets. For just
giving out a small text string, AtkObject::name should be used.
2011-07-05 16:08:09 -04:00
Benjamin Otte
0ca420918b
a11y: Remove AtkText implementation from GailExpander
...
AtkText should only be implemented by text editing widgets. For just
giving out a small text string, AtkObject::name should be used.
2011-07-05 16:08:09 -04:00
Matthias Clasen
2358be732d
Minor optimization
...
No need to get the cursor position twice in a row.
2011-07-05 16:08:09 -04:00
Matthias Clasen
262e59869f
GtkLabelAccessible: some selection handling fixes
...
Don't move the cursor to 0 when removing the selection,
and don't overlook growing selections.
2011-07-05 16:08:09 -04:00
Matthias Clasen
3e84cc9b17
GtkLabel: optimize away some ::notify emissions
2011-07-05 16:08:09 -04:00
Matthias Clasen
2f758b9b50
GtkEntryAccessible: shorten some function names
...
Just cosmetics
2011-07-05 16:08:09 -04:00
Matthias Clasen
ca166c9a1e
Remove a bit of dead code
2011-07-05 16:08:08 -04:00
Matthias Clasen
442ec1b624
GtkEntryAccessible: Clean up the AtkAction implementation a bit
...
No functional changes.
2011-07-05 16:08:08 -04:00
Matthias Clasen
99a54565a3
Purge traces of insert idle handler
2011-07-05 16:08:08 -04:00
Matthias Clasen
212241ffda
GtkEntryAccessible: Rework text_changed handling
...
No more signal emission from an idle.
2011-07-05 16:08:08 -04:00
Matthias Clasen
a1cf2315a0
Fix up signal ordering issues in GtkEntry
...
Ensure that text and selection boundaries are in a
consistent state when we emit notifications, that ::insert-text
and ::delete-text are emitted before any changes, and that
::changed is emitted after property notifications when inserting
or deleting text.
2011-07-05 16:08:08 -04:00
Matthias Clasen
5398a160ad
Add a test for entry signals
...
These tests check that text and selection boundaries are in a
consistent state when we emit notifications, that ::insert-text
and ::delete-text are emitted before any changes, and that
::changed is emitted after property notifications when inserting
or deleting text.
2011-07-05 16:08:08 -04:00
Matthias Clasen
7872c2c19e
GtkEntryAccessible: port from GailTextUtil to GtkPango
...
Also clean up and rearrange the code.
As a side-effect, the no-longer-existing stipple attributes
are dropped. Update test results to match.
2011-07-05 16:08:08 -04:00
Matthias Clasen
b83ee1e5f9
Allow use of private api in a11y/
2011-07-05 16:08:08 -04:00
Matthias Clasen
52a2e1e628
Trivial whitespace fix
2011-07-05 16:08:08 -04:00
Matthias Clasen
6c7e858286
GtkSpinButtonAccessible: Coding style cleanups
...
And some code rearrangement.
2011-07-05 16:08:08 -04:00
Matthias Clasen
918514d51d
First cut at GailEntry -> GtkEntryAccessible
...
Replace the factory for entry and spin button with
gtk_widget_class_set_accessible_type() calls, and move then
to the GtkAccessible namespace.
2011-07-05 16:08:08 -04:00