Marek Kasik
a73c858f4b
Remove dead code from CUPS backend
...
https://bugzilla.gnome.org/show_bug.cgi?id=725441
2014-10-10 13:40:24 +02:00
Marek Kasik
6bdaa95164
Create paper size from IPP media name
...
Add function gtk_paper_size_new_from_ipp() which looks for
given name in standard paper size names list and create appropriate
GtkPaperSize.
https://bugzilla.gnome.org/show_bug.cgi?id=725441
2014-10-10 13:40:21 +02:00
Marek Kasik
ccbb51dff1
Update paper size names
...
Update list of standardized paper size names from
PWG Media Standardized Names 2.0 (MSN2) and from
CUPS' cups/pwg-media.c.
https://bugzilla.gnome.org/show_bug.cgi?id=725441
2014-10-10 13:40:17 +02:00
Matthias Clasen
42280f6c4e
inspector: Add a way to disable the warning dialog
2014-10-09 23:38:44 -04:00
Matthias Clasen
4e974edde8
GtkScrolledWindow: Introduce a helper function
...
Instead of making assumptions about enum value ordering,
introduce a helper function to determine policy values
for which the scrollbar may be visible.
2014-10-09 21:03:40 -04:00
Matthias Clasen
9dcb33ad34
Add an example for synchronized scrolling
...
This example uses GTK_POLICY_EXTERNAL to share a scrollbar among
multiple scrolled windows.
2014-10-09 20:18:51 -04:00
Matthias Clasen
94b680c2cd
GtkScrolledWindow: Allow scrolling without bars
...
Add a new policy, GTK_POLICY_EXTERNAL, which hides the scrollbar,
but does not force the scrolled windows size to be determined by
its child. This can be used to keep two scrolled windows in sync,
while sharing a single scrollbar.
https://bugzilla.gnome.org/show_bug.cgi?id=730730
2014-10-09 20:18:51 -04:00
Benjamin Otte
3f4bd447f8
shadows: Respect scaled factors for cached surface
2014-10-10 01:02:34 +02:00
Benjamin Otte
39097ea2da
render: Optimize the no-borders case to exit early
2014-10-10 00:27:46 +02:00
Benjamin Otte
f46c31f2fb
tests: Exit test when main window is closed
2014-10-10 00:27:45 +02:00
Matthias Clasen
6291899681
Add a note about text view issues
...
Mention text view background problems and the draw_layer
vfunc in the release notes.
2014-10-09 18:13:53 -04:00
Matthias Clasen
41b53ca603
GtkMenuButton: Submit to action
...
As an actionable (inherited from GtkButton), a GtkMenuButton
should not set its own sensitivity when it has an action-name
set, but just follow the enabled state of the associated
action.
https://bugzilla.gnome.org/show_bug.cgi?id=738083
2014-10-09 18:12:25 -04:00
Matthias Clasen
1331740dd6
Remove an unused internal export
...
_gtk_scrolled_window_get_scrollbar_spacing is only used in
gtkscrolledwindow.c, so keep it there.
2014-10-09 00:22:13 -04:00
Matthias Clasen
c9420aa1a3
ColorChooser: Fix an off-by-one error
...
We were not filling the last free space in the custom color
row.
2014-10-09 00:12:46 -04:00
Lapo Calamandrei
cc16a6ca6c
Adwaita: color button changes
...
Dimmed inner colorswatch shadow to make brighter colors looks nice,
increased the padding to make button states more evident, 0 border
radius to match the padding change and no colorswatch shadows when
the button is insensitive.
2014-10-08 17:52:43 +02:00
Lars Uebernickel
0a200e29ca
Distribute gtk/resources/ui/*.ui.h
...
POTFILES references them.
2014-10-08 17:27:23 +02:00
Lapo Calamandrei
e34bb3d483
Adwaita: colorchooser style rewrite
...
To reflect latest Benjamin changes. As a bonus the colorchooser
looks better to me, same for the scss code.
2014-10-08 17:23:45 +02:00
Lapo Calamandrei
140a64eea4
Adwaita: don't round scrolled window frame corners
...
See https://bugzilla.gnome.org/show_bug.cgi?id=737985
2014-10-08 14:08:04 +02:00
Benjamin Otte
e82093fc14
colorswatch: Use a better name for the overlay
...
Name it .overlay and not .image
2014-10-08 13:20:03 +02:00
Benjamin Otte
6b0d389bfd
colorswatch: Draw the image overlay over the whole widget
2014-10-08 13:17:55 +02:00
Benjamin Otte
395db3afb6
themingbackground: Use fill() instead of clip() + paint()
...
It's simpler code and I believe it's faster, too.
2014-10-08 05:23:11 +02:00
Benjamin Otte
a3d68af950
themingbackground: Add a quick exit for default case
...
In the case where the background is completely transparent, exit the
rendering functions before doing any expensive calculations.
2014-10-08 05:20:31 +02:00
Benjamin Otte
14d166145a
themingbackground: Call shadow function directly
...
... instead of having a custom function for it.
2014-10-08 05:20:31 +02:00
Benjamin Otte
5cdb9752a7
themingbackground: Don't store (almost) unused variables
...
Instead, parse them directly to the one function that uses them.
2014-10-08 05:20:31 +02:00
Benjamin Otte
6e68237191
themingbackground: Don't store bg_color in struct
...
Instead, keep it as a separate variable.
2014-10-08 05:20:31 +02:00
Benjamin Otte
8abf82fcf4
themingbackground: Use an array instead of 3 separate members
...
Simplifies code
2014-10-08 05:20:31 +02:00
Benjamin Otte
05460f4982
render: Make rendering the background a single function
2014-10-08 05:20:30 +02:00
Benjamin Otte
3c50c0988a
render: Overhaul gtk_render_handle()
...
The code did weird things with drawing backgrounds sometimes but not
really. Now it does this:
(1) render a background
(2) render a frame
(3) render an icon
- if no icon exists, draw the generic handle icon
2014-10-08 05:20:30 +02:00
Benjamin Otte
c39bd623f6
colorswatch: Render background properly
...
We want to render a background *and* the current color (if there is
one).
This also adds a custom function gtk_render_add_content_path() which
adds the path of the current content area to a cairo_t.
2014-10-08 05:20:30 +02:00
Benjamin Otte
7295c8f12b
colorswatch: Remove an unused variable
2014-10-08 05:20:30 +02:00
Benjamin Otte
100623e455
colorswatch: Render focus with gtk_render_focus()
2014-10-08 05:20:30 +02:00
Benjamin Otte
be19ee29c2
colorswatch: Simplify drawing code
...
This adds a CSS box (complete with padding and border) for the icon. The
box is even drawn when no icon is present. Use the ".image" as the style
class here instead of -active-color-badge.
Use this box to draw the circle around the selection icon in Adwaita.
2014-10-08 05:20:30 +02:00
Matthias Clasen
3897041f4a
More removal of deprecated API
2014-10-07 22:35:02 -04:00
Dariusz Gadomski
15dbadf389
printing: Properly initialize auth_info in gtkprintbackend.c
...
auth_info should be a NULL-terminated array as it is used in
e.g. g_strdupv invocations iterating over its elements until
a NULL element is encountered.
https://bugzilla.gnome.org/show_bug.cgi?id=737777
2014-10-07 18:53:57 -04:00
Matthias Clasen
0bf474e324
Make touch-selection popovers font-inert
...
Just like context menus, these should not inherit font
settings from the text view they are attached to.
2014-10-07 13:28:54 -04:00
Matthias Clasen
f93795d272
Add a style class for touch selection popovers
2014-10-07 13:27:52 -04:00
Lapo Calamandrei
93e61c1f24
Adwaita: change spinbutton button color on backdrop
...
Contextually dim the spinbutton button color a little bit.
2014-10-07 12:23:50 +02:00
Matthias Clasen
d120346992
gtk3-demo: Don't use deprecated API
...
Replace various override calls.
2014-10-07 00:48:30 -04:00
Matthias Clasen
5a0dc74ded
Inspector: Use text attributes for monospace labels
2014-10-07 00:42:46 -04:00
Matthias Clasen
0c02bc4239
Inspector: Use the new monospace support
2014-10-07 00:42:21 -04:00
Matthias Clasen
a3dfffa8b8
Adwaita: Add .monospace style
2014-10-07 00:40:55 -04:00
Matthias Clasen
0004e667ab
GtkTextView: Add a monospace property
...
This is a convenient shortcut for a common case. It is implemented
by adding a .monospace style class to the text view, and letting
the theme decide about the monospace font to use.
2014-10-07 00:39:42 -04:00
Matthias Clasen
2dfc03bdb5
GtkSidebar: Pick up the visible child from the stack
...
Same here: We need to synchronize the visible child with the
selected row when setting a stack on the sidebar. I've noticed
this problem in the sidebar example in gtk3-widget-factory.
2014-10-06 23:07:35 -04:00
Matthias Clasen
c53f4bb342
GtkStackSwitcher: Pick up the visible child from the stack
...
We forgot to synchronize the visible child when setting a
stack on the switcher. Oops.
2014-10-06 23:06:09 -04:00
Matthias Clasen
ba63f95a4a
Add GtkTextViewClass to the docs
...
So that the existing information about draw_layer actually
ends up in the docs. While we are at it, document the other
vfuncs.
https://bugzilla.gnome.org/show_bug.cgi?id=737952
2014-10-06 22:33:19 -04:00
Michael Catanzaro
62da080bd0
tooltip: fix line wrapping
...
We enable line wrap on the internal GtkLabel, but nowadays this does
nothing unless we also set a max number of characters.
https://bugzilla.gnome.org/show_bug.cgi?id=737929
2014-10-06 21:30:18 -04:00
Vasiliy Nuzha
ba6522d3f2
Fix monitors enumeration bug
...
Fix monitors enumeration bug. By default used MONITORINFOEXW (UTF-16 Build) with wrong structure size
2014-10-06 22:48:08 +00:00
Jasper St. Pierre
1914e65591
gdkwindow: Fix small typo
2014-10-06 13:36:59 -07:00
Benjamin Otte
f3bd78a3cf
gdk: Fix gdk_cairo_create() without begin_paint()
...
We were translating the clip region twice in that case.
https://bugzilla.gnome.org/show_bug.cgi?id=737825
2014-10-06 22:24:28 +02:00
Changwoo Ryu
916d9e4a52
Updated Korean translation
2014-10-07 01:35:23 +09:00