Commit Graph

35835 Commits

Author SHA1 Message Date
John Lindgren
90dfe56a0d Populate GtkPlacesSidebar at initialization
Previously, the "Places" sidebar was populated by the update_places()
call from within gtk_places_sidebar_style_set(). After
742a2f11a9, update_places() is never called
and the sidebar is never populated unless gtk_places_sidebar_add_shortcut()
happens to be called. This commit fixes this by calling update_places()
at the end of gtk_places_sidebar_init().

https://bugzilla.gnome.org/show_bug.cgi?id=709522
2013-10-10 14:51:42 -04:00
Timothy Arceri
bfc0fb71f9 Remove unused function
https://bugzilla.gnome.org/show_bug.cgi?id=586107
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
2013-10-10 14:51:42 -04:00
Timothy Arceri
2076b7414d Remove a bunch of unused variables.
https://bugzilla.gnome.org/show_bug.cgi?id=586107
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
2013-10-10 14:51:42 -04:00
Timothy Arceri
54afbe790d Dont set enum to NULL fixes build issues on Solaris 10
https://bugzilla.gnome.org/show_bug.cgi?id=586107
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
2013-10-10 14:51:42 -04:00
Timothy Arceri
e7b92ee829 Reorder message in configure.ac to display result on the same line
https://bugzilla.gnome.org/show_bug.cgi?id=341146

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
2013-10-10 14:51:42 -04:00
Kjell Ahlstedt
2f86f03a58 GtkWindow: Override gtk_container_remove ()
Check which child is being removed, title_box or the GtkBin child.

https://bugzilla.gnome.org/show_bug.cgi?id=709049
2013-10-10 14:51:42 -04:00
Matthias Clasen
89c3585ecc Improve gtk_container_add docs
Mention that some containers add intermediate children automatically.
2013-10-10 14:51:42 -04:00
William Jon McCann
2bea8f8497 Fix typo in gtk-win32-base.css 2013-10-10 14:51:42 -04:00
John Ralls
3c2008e89d Clarify Cursor Theme GDK Warning 2013-10-10 14:51:42 -04:00
Matthias Clasen
40d7ee5e2a Trivial: remove an unused declaration
_gtk_list_box_accessible_update_selected is not used and
does not exist.
2013-10-10 14:51:42 -04:00
Matthias Clasen
2d03c71cf9 csd: Avoid jumping windows
The size of the shadow and invisible borders can (and usually
will) change between backdrop and focused windows, while the
overall window size remains unchanged. This causes the visible
window to visually 'jump'. We can avoid this by always reserving
the maximum of the focused and unfocused border sizes. The code
for positioning the input-only windows making up the invisible
border is adjusted to deal with this. We now always place the
invisible border right outside the visible content, even if the
shadow extends out much farther.

https://bugzilla.gnome.org/show_bug.cgi?id=707524
2013-10-10 14:51:42 -04:00
Matthias Clasen
7d36488d90 GtkAboutDialog: prevent unintended visibility
Some of the labels were not marked as no-show-all. But the
code clearly tries to manage their visibility, so gtk_widget_show_all()
should not affect them.

https://bugzilla.gnome.org/show_bug.cgi?id=681484
2013-10-10 14:51:42 -04:00
Mario Sanchez Prada
699e3e2834 a11y: don't shutdown accessibility, so the atk bridge is always valid
This will fix issues in applications that for some reason make
several and not nested calls to gtk_main() during their lifetime,
effectively initializing a11y when the first, top most, main loop
is being run and shutting it down then that loop is quit.

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

https://bugzilla.gnome.org/show_bug.cgi?id=684076
2013-10-10 14:51:42 -04:00
Benjamin Otte
96a28488ea gdkcairo: Actually paint the pixbuf
I accidentally a line before committing
b41787bc78 - whoops.
2013-10-10 14:51:42 -04:00
Benjamin Otte
b6512eea3f testsuite: Add a test for functions that work without gtk_init()
So far, this is just supposed to be gdk_cairo_set_source_pixbuf().

Note that this is usually not an API guarantee but courtesy to
applications that used these APIs without a gtk_init() call.

https://bugzilla.gnome.org/show_bug.cgi?id=708547
2013-10-10 14:51:42 -04:00
Benjamin Otte
16c8445cc1 gdkcairo: Don't require gtk_init() for set_source_pixbuf()
Instead of using the default display's root window's surface, use the
target surface of the passed in cairo_t to create the similar image from.

https://bugzilla.gnome.org/show_bug.cgi?id=708547
2013-10-10 14:51:42 -04:00
Benjamin Otte
f1ea85e514 gdkcairo: Split out a function
This is in preparation for the next patch.
2013-10-10 14:51:42 -04:00
Xavier Claessens
bde811bed0 GtkSearchBar: replace incomplete example with a real one
https://bugzilla.gnome.org/show_bug.cgi?id=709745
2013-10-10 14:42:46 -04:00
Xavier Claessens
e879720495 Add example app for GtkSearchBar
https://bugzilla.gnome.org/show_bug.cgi?id=709745
2013-10-10 14:42:46 -04:00
Xavier Claessens
af2c540a95 GtkMenu: Document that gtk_widget_insert_action_group() can be used 2013-10-10 14:03:23 -04:00
Matthias Clasen
fba0a9e8af Fix build with explicit --enable-wayland-backend
We forgot to set set WAYLAND_SCANNER in this case.
2013-10-10 12:48:48 -04:00
Matthias Clasen
668eb79086 configure: Make Wayland backend optional
As long as we are not ready to switch over the default backend,
arrange ./configure without explicit backend options makes the
x11 backend mandatory and the wayland backend optional (depending
on whether we find Wayland dependencies).

http://bugzilla.gnome.org/show_bug.cgi?id=709212
2013-10-10 12:48:48 -04:00
Gabor Kelemen
9746ab3539 Updated Hungarian translation 2013-10-10 14:55:08 +02:00
David King
71affbeec0 stack: Warn when setting a visible child which is not in the stack
https://bugzilla.gnome.org/show_bug.cgi?id=709613
2013-10-09 12:11:56 +01:00
William Jon McCann
5b9524f0f7 range: start autoscrolling near the edges of ranges
If a range goes all the way to the edge of the screen then we don't
have any way to activate autoscrolling. By adding a small region
at the ends of the range we can handle this case. This is the same
approach used in treeviews.
2013-10-07 16:40:26 -04:00
Khaled Hosny
09dc2ea808 Update Arabic translation 2013-10-07 17:08:02 +02:00
Victor Ibragimov
42c09b9065 Tajik translation updated 2013-10-07 15:16:15 +05:00
Timm Bäder
6c77f65ea6 gtk_list_box_set_focus: Handle ist_box == NULL
Rows without a parent GtkListBox can happen in Glade and its previewer.
2013-10-03 14:11:50 +02:00
Chun-wei Fan
6c60cdb816 gengir_gtk.bat: Correctly handle time_t
...on x64 Windows/MSVC builds.  This is because time_t is a long long on
x64 arch on Windows.
2013-10-03 17:26:01 +08:00
Bastien Nocera
55c75cd6dc iconhelper: Fix leak when rendering to cairo surface
https://bugzilla.gnome.org/show_bug.cgi?id=709264
2013-10-02 17:17:06 +02:00
Bastien Nocera
5b5a4b5dfc iconhelper: Use g_clear_* helpers
https://bugzilla.gnome.org/show_bug.cgi?id=709264
2013-10-02 17:17:06 +02:00
Bastien Nocera
0eccb06cb2 icon-theme: Fix 2 memory leaks in GtkIconInfo
https://bugzilla.gnome.org/show_bug.cgi?id=709264
2013-10-02 17:17:06 +02:00
Bastien Nocera
1429ebffb2 icon-theme: Use g_clear_* helpers in finalize
https://bugzilla.gnome.org/show_bug.cgi?id=709264
2013-10-02 17:17:06 +02:00
Alexander Larsson
8300c1683a GtkTextView: Fix horizontal scrolling
We didn't properly invalidate when scrolling horizontally.

https://bugzilla.gnome.org/show_bug.cgi?id=708019
2013-10-02 16:24:42 +02:00
Alexander Larsson
9f04e9ccb1 GtkTextView: Fix regression in GtkSourceView drawing
GtkSourceView draws before chaining upo to GtkTextView and assumes
that this will be visible, but the pixelcache will just overdraw
that with background.

So, we stop drawing the background to the pixel cache and instead
make it an CAIRO_CONTENT_COLOR_ALPHA surface to make the previously
drawn content see through.

This is slower, but more backwards compatible.

https://bugzilla.gnome.org/show_bug.cgi?id=708423
2013-10-02 16:24:40 +02:00
Rūdolfs Mazurs
190bdf0592 Updated Latvian translatio 2013-10-02 11:50:30 +03:00
Rūdolfs Mazurs
809df4da4f Updated Latvian translatio 2013-10-02 11:47:22 +03:00
Kenneth Nielsen
dfeb51f1f2 Updated Danish translation 2013-10-01 19:11:17 +02:00
Мирослав Николић
2c6cabf1dc Updated Serbian translation 2013-10-01 09:55:50 +02:00
Cosimo Cecchi
9196deec8d entrycompletion: set the GtkWindow as attached to the GtkEntry
This way themes can easily select that window to apply custom styles.

https://bugzilla.gnome.org/show_bug.cgi?id=708414
2013-09-30 09:47:01 -07:00
Cosimo Cecchi
e97c115b54 icontheme: use g_file_load_contents() for symbolic icons
When loading a symbolic icon, g_file_get_contents() is currently used
with the icon pathname, to load its SVG data. This won't work when the
icon is not a local file, for instance when a symbolic icon is loaded
from a GFileIcon with a GResource path.
Fortunately GtkIconInfo already holds a GFile, so we can just use
g_file_load_contents() to load the data instead.

https://bugzilla.gnome.org/show_bug.cgi?id=709056
2013-09-30 09:46:19 -07:00
Hannie Dumoleyn
834854da0f Updated Dutch translation 3.10 2013-09-30 16:44:59 +02:00
Ryan Lortie
7414323519 GtkTreeViewColumn: start padding at 0
If we start with a padding of -1 then it can leak out of the size
allocation request for the column when the treeview is empty.  The
GtkTreeView will then collect these -1 values and add them together,
returning -n where 'n' is the number of columns.

This is usually not a problem because treeviews tend to be used with a
scrollbar and the width of the scrollbar will be added to this number
bringing it into positive territory again.  On Ubuntu, with overlay
scrollbars, this is not the case, however.

https://bugzilla.gnome.org/show_bug.cgi?id=703062
2013-09-30 09:24:14 -04:00
Bastien Nocera
4e060e6efe Fix possible crash in header bar
When the header bar's top-level widget is not a GtkWindow,
don't try to get the inexistant "decoration-button-layout"
property.
2013-09-27 17:27:51 +02:00
Lionel Landwerlin
98994f5df6 GdkWindowX11: Prevent non renderered window to be display by the compositor
When mapping a window for the first time, make sure the compositor
won't display it until we're done painting.

https://bugzilla.gnome.org/show_bug.cgi?id=702196
2013-09-26 22:16:03 +01:00
Kjartan Maraas
bb8c6ffeed Updated Norwegian bokmål translation 2013-09-26 21:19:21 +02:00
Chun-wei Fan
ee2dc51d7a Update Demos Visual Studio Projects
Improve optimization, by re-enabling WholeProgramOptimization but changing
the linker optimization to not drop items that are not referenced in code
(such as compiled gresource sources that are not directly referenced in
code, as they are still needed for the demos to run properly).
2013-09-26 19:53:41 +08:00
Yuri Myasoedov
9fac69160d Updated Russian translation 2013-09-25 23:22:49 +04:00
Christian Kirbach
c088a0d04e Updated German translation 2013-09-25 15:21:16 +02:00
Josep Sànchez
fc116508a4 [l10n] Update Catalan translation 2013-09-25 00:39:21 +02:00