Cosimo Cecchi
8b16f73f88
open-with-widget: don't set border in the widget box
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
9a1cd83933
open-with-widget: add support for fallback applications
...
Needs some new API in GIO, which is not yet merged.
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
a443eb8602
open-with-dialog: remove old declarations
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
1bb2a1b9ec
open-with: remove obsolete code
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9150f6b13a
open-with-widget: simplify code a bit
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
a6a56d4194
open-with-widget: add a "Show more applications" button
...
So that we don't always show them all unconditionally in HEADINGS mode.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
7d8e7e5f1d
open-with-widget: make the list more pretty
...
Use bigger icons, with bold names and italic descriptions next to them.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9ffe52c049
open-with-dialog: don't ever show_all()
...
As there might be some elements in the widget that we don't want to
always show.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
254cc6aca6
open-with-widget: add a context menu for recommended entries
...
We can put "Forget association" there, which removes the application
from the recommended list.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
f8a6ac5429
tests: update to new API
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
2f5073fbb3
open-with-dialog: remove the mode from the dialog, we won't use it anymore
...
According to the new design, the dialog should automatically do the
right thing wrt. app association and default handling.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
cf25ec8fa7
open-with: first attempt to split the dialog into a widget + interface
...
Like GtkFileChooser does; GtkOpenWith is a generic interface, which is
now implemented by both GtkOpenWithDialog and GtkOpenWithWidget (and in
the future also by GtkOpenWithComboBox).
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9d6055d0c8
tests: use new open with mode in the tests
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
a4283d7bab
open-with: turn the show_all_applications boolean into an enum
...
We have three modes of showing applications now:
- RECOMMENDED mode: shows only the recommended applications
- ALL mode: shows all applications, uncategorized
- HEADINGS: shows headings for recommended and other applications
(default).
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
77b5fcfa93
open-with: add docs and integrate with the build GTK+ conventions
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
8c8f7f83ba
open-with: add gtk_open_with_dialog_get_mode()
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
df8ccfb800
open-with: change the API to make it symmetric for GFile or content-type
...
It's much more convenient this way.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
3a6b936573
tests: rewrite the GtkOpenWithDialog test to make it more interactive
...
Now you can play with all the options provided by GtkOpenWithDialog API.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
accb766db2
open-with: add misc utility API to the dialog
...
- _set/get_show_other_applications() is a way to only display
recommended applications in the dialog
- _set/get_show_set_as_default_button() is a way to control the
"Remember this application" checkbox
We also get rid of he "application-selected" signal, in favour of a
_get_selected_application() API inspired by GtkFileChooser.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
a8cf63cc84
open-with: add xpadding to the treeview renderers
...
We use a GtkCellRenderer hack for this.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
ee9a7a3baf
open-with: cope with NULL GAppInfo
...
It's not that the GAppInfo can actually be NULL, but we use the store to
save headings too, which have no GAppInfo in their rows.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
1d67b4ac26
open-with: don't override the class signal handler, as it's RUN_LAST
...
And explain why in a comment; basically we want our handler to always
run before client code.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
c8ea415873
open-with: don't use gtk_misc_* functions
...
They're so passe'!
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
3d044a7c3e
open-with: add a "show-other-applications" property
...
This is useful for use-cases where showing a list of all the installed
applications can be confusing. We can control that with a property now.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
be18ca45f0
open-with: initial implementation of GtkOpenWithDialog
2010-11-23 16:51:38 +01:00
Gheyret T.Kenji
f350c4c1b2
Added UG translation
2010-11-20 11:56:21 +01:00
Kjartan Maraas
85e15a3880
Updated Norwegian bokmål translation
2010-11-20 11:50:08 +01:00
John (J5) Palmieri
f2a187f27a
[gi] add array annotations for DnD related methods
2010-11-19 15:06:40 -05:00
Michael Natterer
bc0e6b2b21
gtk: remove GtkWidget::size-request
...
Fixes Bug 633324 - Stop invoking size-request completely
2010-11-19 19:38:48 +01:00
Martin Pitt
3431f7a2d7
GtkRadioButtons: Mark group arguments as "allow-none"
...
In the current introspection data, the various gtk_radio_button_new_*
constructors take an existing group or widget. These all allow passing a NULL
widget or group list, so that it becomes easy to build a radio button list in a
loop (pass in None the first time, and the previously created button in all
other iterations).
Add the missing "allow-none" tag to the introspection data, so that this will
also eventually work for GIR users. NB that it does not actually work for some
constructors yet (like new_with_label_from_widget()) due to
https://bugzilla.gnome.org/show_bug.cgi?id=561264 .
https://bugzilla.gnome.org/show_bug.cgi?id=635253
2010-11-19 16:29:43 +01:00
Owen W. Taylor
a4d59f7415
Create the icon pixmap with the system visual
...
Since what we are doing is turning an icon with alpha into a
no-alpha icon + mask for legacy window managers, it makes more sense
to use the system visual than the window's visual, which might
be ARGB.
https://bugzilla.gnome.org/show_bug.cgi?id=634821
2010-11-19 09:29:43 -05:00
Evan Martin
d3f1312c98
docs: Copy GtkSizeGroup ownership discussion to GtkWindowGroup
...
The two behave identically, so the text is the same with s/size/window/.
2010-11-19 09:24:02 -05:00
Michael Natterer
c2fd7e8350
gtk: draw the frame around the spinbutton's buttons conditionally
...
(depending on GtkEntry::has-frame)
2010-11-19 14:55:47 +01:00
Javier Jardón
39f5740763
configure: define GTK+ version before AC_INIT
...
So the gtk_version varibale will be defined
2010-11-19 09:02:17 +01:00
Javier Jardón
4e3db2e3a8
gtkcombobox: Use accessor functions to access GtkTreeViewColumn
2010-11-19 08:38:12 +01:00
Javier Jardón
224ce2cf6c
gtktreeview: Use accessor functions to access GtkTreeViewColumn
2010-11-19 08:38:12 +01:00
Javier Jardón
c4be956473
gtkentry: move public members to private structure
2010-11-19 08:38:12 +01:00
Javier Jardón
f2abd656f6
gail: Use accessor functions to access GtkEntry
...
Also, we can't access entry->preedit now. Commented that code until
some gail expert can fix it
2010-11-19 06:15:27 +01:00
Javier Jardón
8c941d2b4e
Add _gtk_entry_get_im_context() internal accessor
...
It's needed by gtktreeview
2010-11-19 06:15:27 +01:00
Javier Jardón
fb3429e507
gtkcombobox: Do not access GtkEntry internals
...
It's not needed anymore
2010-11-19 06:15:27 +01:00
Javier Jardón
9fa0edd928
gail: we cant access button->in_button directly now.
...
Commented some code until some gail expert can fix this.
2010-11-19 06:15:27 +01:00
Javier Jardón
dec57f8ce9
Create a private header to access some GtkButton variables
2010-11-19 06:15:26 +01:00
Javier Jardón
c295ab0943
gtktbutton: Move public members to private structure
2010-11-19 06:15:26 +01:00
Javier Jardón
9f16f99358
docs: Improve cross-referencing in the migration guide
2010-11-19 04:44:42 +01:00
Javier Jardón
29fc179a89
gtkplug: Do not leak in gtk_plug_realize()
...
Indeed, we should check for window->wmclass_name
Reported by Guillaume Desmottes in bug
https://bugzilla.gnome.org/show_bug.cgi?id=635175
2010-11-18 17:52:18 +01:00
Tristan Van Berkom
c03a3ca601
Fixing GtkScrolledWindow inconsistent scrollbar visibility.
...
Also removing the hack to prevent hangs which is properly fixed by
the preceeding commit.
2010-11-19 00:53:19 +09:00
Tristan Van Berkom
f20ac5792f
Fixing hangs with GtkScrolledWindow
...
Now gtk_widget_size_allocate() unsets the resize_needed flags
before returning, essentially this means that any widget that
has a queued resize and is allocated before resize time, including
queued resizes from inside a size_allocate() method will be
cancelled.
2010-11-19 00:53:13 +09:00
Michael Natterer
881282e055
gtk: honor entry->has_frame again draw the frame conditionally
...
when GtkEntry had visible windows, it was never noticed that we always
draw the frame, because the text_area window would cover it if
draw_frame was FALSE.
2010-11-18 01:06:57 +01:00
Michael Natterer
3ec8daa66c
gtk: draw the progress only on the text area
...
so it doesn't extend under GtkSpinButton's buttons.
2010-11-18 01:06:57 +01:00
Javier Jardón
4782804b9d
demos: Replace size_request by get_preferred_width/height
2010-11-17 23:58:53 +01:00