Commit Graph

31590 Commits

Author SHA1 Message Date
Daniel Mustieles
c1210e5bb1 Updated Spanish translation 2012-07-16 17:13:45 +02:00
Piotr Drąg
865a050d16 Updated Polish translation 2012-07-15 23:31:39 +02:00
Matthias Clasen
16abdd8d1d Bump version 2012-07-15 14:01:43 -04:00
Matthias Clasen
cc39961694 Update expected test output
This was affected by the change to add stock icons to the
assistant butons.
3.4.4
2012-07-15 13:27:19 -04:00
Matthias Clasen
2778939ad2 Fix the infobar builder test 2012-07-15 13:23:28 -04:00
Matthias Clasen
9c1df66a2e Updates 2012-07-15 12:58:40 -04:00
Matthias Clasen
a7074f6c4e Fix preview sizing in GtkFontSelection
The code that was trying to limit preview size changes was
running into some width-for-height pitfalls. It turns out
that the dialog behaves quite ok without this code, so just
remove it.
2012-07-15 12:58:40 -04:00
Emmanuele Bassi
a50d8ee062 Ensure that XDG_DATA_HOME is created before using it
The recently-used.xbel storage for recently used files is located inside
the $XDG_DATA_HOME directory; there's no actual guarantee that the
directory has been created already, even though it's very highly
probable on any modern distribution. We should create it, along with its
intermediate parents, before constructing the file monitor that we use
to get change notifications.

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

https://bugzilla.gnome.org/show_bug.cgi?id=667808
2012-07-15 12:58:39 -04:00
Micah Carrick
9953f524e5 Fix typo replacing action "Parse" with "Paste"
The builder XML description has an action for "win.parse" but the
application is looking for "win.paste". Rename the label to
"_Paste" and the action to "win.paste" in the window action XML.

https://bugzilla.gnome.org/show_bug.cgi?id=678829
2012-07-15 12:58:39 -04:00
Phil Clayton
94910512f4 Change signal parameter names in GdkWindow to be valid C identifiers
https://bugzilla.gnome.org/show_bug.cgi?id=679228
2012-07-15 12:58:39 -04:00
Víctor Manuel Jáquez Leal
74f82fe97f docs: link against libgdk-3.la
https://bugzilla.gnome.org/show_bug.cgi?id=679409
2012-07-15 12:58:38 -04:00
Antoine Jacoutot
9b760d4a6e OpenBSD: use G_N_ELEMENTS instead of nitems
nitems is never guaranteed to be defined in sys/params.h as it is meant
to be defined within a protected ifdef __KERNEL conditional.
Use G_N_ELEMENTS from GLib which is the proper way of doing this.
2012-07-15 12:58:38 -04:00
Benjamin Otte
5328cb71db a11y: Don't mess up if column gets hidden
We were using a function that insisted on visible columns for computing
the potential ID of an invisible column. Not good.

https://bugzilla.gnome.org/show_bug.cgi?id=675990
2012-07-15 12:58:38 -04:00
Cosimo Cecchi
1f415e86d8 modelmenu: listen for toplevel changes on the attach widget
Right now, when we create a GtkModelMenu for a GMenuModel, we listen to
changes to the menu's attach-widget to detect when a toplevel
GtkApplicationWindow becomes available to fetch actions from it.

This unfortunately breaks this simple code:

  GtkWidget *application_window = gtk_application_window_new();
  GtkWidget *menu_button = gtk_menu_button_new();
  GMenuModel *menu_model = get_menu_model();

  gtk_menu_button_set_menu_model(menu_button, menu_model);
  gtk_container_add(GTK_CONTAINER(application_window), menu_button);

Since GtkMenuButton creates a GtkModelMenu and sets itself as its attach
widget before it's added to a hierarchy containing a
GtkApplicationWindow.

Fix the bug by simply listening for changes in the window hierarchy, and
creating the menu model when the attach widget is added to an
application window.

https://bugzilla.gnome.org/show_bug.cgi?id=679454
2012-07-15 12:58:37 -04:00
Cosimo Cecchi
5aae0040f7 menu: notify attach-widget property when menu is detached
When the menu is detached, the attach-widget property changes value to
NULL, so we should notify a property change, like
gtk_menu_attach_to_widget() does.

https://bugzilla.gnome.org/show_bug.cgi?id=679454
2012-07-15 12:58:37 -04:00
Cosimo Cecchi
0f3d475c25 modelmenu: set the accel group on the GtkMenu
Or the accelerators added for actions in the menu won't be displayed in
the menu items.

https://bugzilla.gnome.org/show_bug.cgi?id=679166
2012-07-15 12:58:36 -04:00
Ryan Lortie
75aefaf32c GActionMuxer: disconnect group signals on finalize
The signals for the action group were being disconnected when the action
group was explicitly removed from the GActionMuxer but the same was not
being done when it was finalized.

This means that a change in the state of an action group that used to be
associated with a finalized GActionMuxer would result in a crash.  This
would happen for stateful application actions after closing a window.
2012-07-15 12:58:36 -04:00
Cosimo Cecchi
f245f370b0 radiobutton: add missing (element-type) annotation for radio groups
The GSLists should specify their element-type in every annotation. We
are missing some.

https://bugzilla.gnome.org/show_bug.cgi?id=677127
2012-07-15 12:58:36 -04:00
Cosimo Cecchi
58f9d23244 menu: add missing (scope async) annotation to gtk_menu_popup()
Or the g-i scanner will emit a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=677127
2012-07-15 12:58:35 -04:00
Matthias Clasen
21a3c4ae70 GdkDevice: Fix an inverted assertion
gdk_device_list_slave_devices only makes sense to call on master
devices, yet its g_return_if_fail check made it reject such devices.

Pointed out by monty.
2012-07-15 12:58:35 -04:00
Dan Vrátil
13c0e8f8f7 Fix a memory leak in GtkImage
https://bugzilla.gnome.org/show_bug.cgi?id=678175
2012-07-15 12:58:34 -04:00
Jasper St. Pierre
8fd32fc9bb assistant: Set the proper stock images on the proper buttons
Copy/paste typo.
2012-07-15 12:58:34 -04:00
Cosimo Cecchi
6f6b5c81ea entry-completion: don't move to leftmost character with inline-selection
When inline-selection is set, and the completion popup is showing,
pressing left abruptly jumps to the beginning of the entry text.
This is not expected, since the cursor is at the end of the text before
the left key is pressed, and this behavior is completely inconsistent
with how an entry would normally behave.
The behavior can be observed in Epiphany by selecting a completion match
and pressing left.

This patch changes the code so that it just runs the default entry key
press keybindings in such a case.

https://bugzilla.gnome.org/show_bug.cgi?id=677915
2012-07-15 12:58:34 -04:00
Matthias Clasen
11150d7bb9 fix a typo 2012-07-15 12:58:33 -04:00
Martin Pitt
d53732ad0c liststore: Make gtk_list_store_reorder() introspectable
Mark the new_order argument as zero-terminated array, even though it does not
need to be zero terminated (it has an implicit length not given by a constant
or another method argument). It does not hurt if bindings append an extra zero
to the array as long as it has enough elements, and this makes the method
introspectable.

https://bugzilla.gnome.org/show_bug.cgi?id=677941
2012-07-15 12:58:33 -04:00
Cosimo Cecchi
195da30575 spinbutton: fix a typo
GTK_STATE_* -> GTK_STATE_FLAG_*
2012-07-15 12:58:33 -04:00
Matthias Clasen
f812772037 Update docs for GtkEntry::activate
Remove the 'you shall not connect' message from this signal.
While it is a keybinding signal, using it from applications is
fine and, in fact, expected.
2012-07-15 12:58:32 -04:00
Torsten Schönfeld
82972adbba gdk: annotate the attributes_mask type for gdk_window_new
https://bugzilla.gnome.org/show_bug.cgi?id=670369
2012-07-15 12:58:32 -04:00
Torsten Schönfeld
68fe504733 gdk: add a missing annotation to GdkEventProperty
Its 'state' field is of type GdkPropertyState.

https://bugzilla.gnome.org/show_bug.cgi?id=677775
2012-07-15 12:58:31 -04:00
Torsten Schönfeld
2138dfa393 gdk: add missing annotations to gdk_event_get_scroll_deltas
https://bugzilla.gnome.org/show_bug.cgi?id=677774
2012-07-15 12:58:31 -04:00
Cosimo Cecchi
24ccf3e35d a11y: fix a typo leading to a crash
text can't be NULL here, or we would have failed way earlier.
The original code from gail returned if the renderer text was NULL, and
we have to do that, or we'll end up calling e.g.
g_utf8_offset_to_pointer() on a NULL pointer.

https://bugzilla.redhat.com/show_bug.cgi?id=827930

https://bugzilla.gnome.org/show_bug.cgi?id=677551
2012-07-15 12:58:31 -04:00
Cosimo Cecchi
424647137f tests: add an unit test for the previous commits
https://bugzilla.gnome.org/show_bug.cgi?id=677649
2012-07-15 12:58:30 -04:00
Cosimo Cecchi
e985a2ac0f treestore: fix transformation of GValues on set
There are three bugs here:
- we should check if the value type is transformable instead of being
  compatible, since that's all we care about in order to call
  g_value_transform()
- the check is only meaningful in the direction
  passed-in-type->column-type and not viceversa
- we should init the destination GValue to the column type before
  calling g_value_transform on it, or the destination type information
  will be missing and the method will fail

Thanks to Jasper St. Pierre and Colin Walters for all the help in
tracking this down.

https://bugzilla.gnome.org/show_bug.cgi?id=677649
2012-07-15 12:58:30 -04:00
Cosimo Cecchi
d4b3e4d97b liststore: fix transformation of GValues on set
There are three bugs here:
- we should check if the value type is transformable instead of being
  compatible, since that's all we care about in order to call
  g_value_transform()
- the check is only meaningful in the direction
  passed-in-type->column-type and not viceversa
- we should init the destination GValue to the column type before
  calling g_value_transform on it, or the destination type information
  will be missing and the method will fail

Thanks to Jasper St. Pierre and Colin Walters for all the help in
tracking this down.

https://bugzilla.gnome.org/show_bug.cgi?id=677649
2012-07-15 12:58:30 -04:00
Marc-Antoine Perennou
aa350e5aef build: Fix MKDIR_P for recent automake
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2012-07-15 12:58:29 -04:00
Bastian Winkler
74041bb6ea grid: Add missing guard to gtk_grid_get_child_at()
Add missing guard to make sure it's called with a GtkGrid argument.

https://bugzilla.gnome.org/show_bug.cgi?id=677363
2012-07-15 12:58:29 -04:00
Matthias Clasen
253d8037ec Remove gtk_accel_group_query from the docs
It is marked as "internal" in the headers, and the struct it
returns is not documented either.
2012-07-15 12:58:28 -04:00
Matthias Clasen
494f3cc9cd Link to the 2.x deprecated index in the migration guide 2012-07-15 12:58:28 -04:00
Matthias Clasen
6235545ce7 Document "set" properties a bit
Both GtkTextTag and GtkCellRenderer make use of "set" properties
which are a bit special. Document this.

https://bugzilla.gnome.org/show_bug.cgi?id=531319
2012-07-15 12:58:28 -04:00
Matthias Clasen
167df3ea03 Correct the docs for GDK_MSB_FIRST
https://bugzilla.gnome.org/show_bug.cgi?id=571254
2012-07-15 12:58:27 -04:00
Matthias Clasen
5a6897659e Mention cairo_save/restore in the ::draw migration docs
https://bugzilla.gnome.org/show_bug.cgi?id=646798
2012-07-15 12:58:27 -04:00
Matthias Clasen
9e5ad61f71 Reword lockbutton docs
https://bugzilla.gnome.org/show_bug.cgi?id=659613
2012-07-15 12:58:26 -04:00
Matthias Clasen
65d477ea27 Clarify the gtk_style_context_add_provider docs
https://bugzilla.gnome.org/show_bug.cgi?id=643490
2012-07-15 12:58:26 -04:00
Matthias Clasen
7f7ed154d8 Mention GTK_DIALOG_NO_SEPARATOR in migration docs
http://bugzilla.gnome.org/show_bug.cgi?id=647779
2012-07-15 12:58:26 -04:00
Matthias Clasen
8190fae7f1 GtkToolbar: Prevent accidental drag starts
We don't want to start drags on double- or triple clicks, and
doing so causes problems for embedded range widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=675535
2012-07-15 12:58:25 -04:00
Matthias Clasen
e9425fa7df Fix the build on Solaris
http://bugzilla.gnome.org/show_bug.cgi?id=663991
2012-07-15 12:58:25 -04:00
Christian Kirbach
1e62a5333b Updated German translation 2012-07-15 18:22:08 +02:00
Emmanuele Bassi
7feef179c5 docs: Escape bare '#' in GdkRGBA string definitions
GTK-Doc does not like bare '#', so let's turn them into &num;.
2012-07-15 00:52:45 -04:00
Руслан Ижбулатов
05e960d303 docs: libgailutil is now called libgailutil-3 2012-07-15 00:52:37 -04:00
Matthias Clasen
770e564675 Add since annotations to some enum values
The things related to touch and smooth scrolling were 3.4 additions,
so mark them as such.

https://bugzilla.gnome.org/show_bug.cgi?id=676329
2012-07-15 00:52:27 -04:00