]> Pileus Git - ~andy/gtk/log
~andy/gtk
11 years agoRevert "box: Don't special-case RTL hbox child positions anymore"
Cosimo Cecchi [Fri, 22 Feb 2013 14:14:19 +0000 (09:14 -0500)]
Revert "box: Don't special-case RTL hbox child positions anymore"

This reverts commit 6f86e57c4fb2cd76549910302b3a7145e7fd0e8b.

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

11 years agoRevert "toolbar: Don't special-case RTL toolbar child positions anymore"
Cosimo Cecchi [Fri, 22 Feb 2013 14:14:10 +0000 (09:14 -0500)]
Revert "toolbar: Don't special-case RTL toolbar child positions anymore"

This reverts commit 821a675013e04598503d3c5ea23ab91607f98e70.

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

11 years agoRevert "combobox: Don't special-case RTL child positions anymore"
Cosimo Cecchi [Fri, 22 Feb 2013 14:14:04 +0000 (09:14 -0500)]
Revert "combobox: Don't special-case RTL child positions anymore"

This reverts commit cf712c462d766e32840da21a67708bbf2cbb25a6.

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

11 years agoUpdated Czech translation
Marek Černocký [Fri, 22 Feb 2013 21:06:03 +0000 (22:06 +0100)]
Updated Czech translation

11 years agoUpdated Czech translation
Marek Černocký [Fri, 22 Feb 2013 20:48:59 +0000 (21:48 +0100)]
Updated Czech translation

11 years agoPunjabi: Translation updated (aalam)
A S Alam [Fri, 22 Feb 2013 08:49:11 +0000 (08:49 +0000)]
Punjabi: Translation updated (aalam)

11 years agoPunjabi: Translation updated (aalam)
A S Alam [Fri, 22 Feb 2013 08:49:05 +0000 (08:49 +0000)]
Punjabi: Translation updated (aalam)

11 years agoRe-organize Visual Studio property sheets a bit
Chun-wei Fan [Fri, 22 Feb 2013 05:13:54 +0000 (13:13 +0800)]
Re-organize Visual Studio property sheets a bit

-Use ApiVersion instead of GtkApiVersion for consistency's sake across
 the board
-Add placeholder directives in the property sheets for building
 introspection files using .bat files directly from the Visual Studio IDE.

11 years agoAdd Visual Studio project for gtk3-demo-application
Chun-wei Fan [Fri, 22 Feb 2013 05:09:50 +0000 (13:09 +0800)]
Add Visual Studio project for gtk3-demo-application

This is used by the "Application Class" demo... so this should be built
as well especially as we are getting gspawn-win{32|64}-helper.exe fixed
on Visual Studio 2005 (and later) builds.

11 years agofilechooserbutton: Don't ever use gtk_file_chooser_get_files()
Federico Mena Quintero [Fri, 22 Feb 2013 00:44:38 +0000 (18:44 -0600)]
filechooserbutton: Don't ever use gtk_file_chooser_get_files()

The file chooser button only supports single-selection modes, so
switch the code to a simpler gtk_file_chooser_get_file() to avoid
dealing with GSLists of a single file.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agoGtkWidget::draw() - Document how to get the dirty region
Federico Mena Quintero [Thu, 21 Feb 2013 18:55:50 +0000 (12:55 -0600)]
GtkWidget::draw() - Document how to get the dirty region

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agoMake sure icon cache has /-separated subdirs only (v2 - use g_build_path)
Руслан Ижбулатов [Thu, 21 Feb 2013 18:25:21 +0000 (22:25 +0400)]
Make sure icon cache has /-separated subdirs only (v2 - use g_build_path)

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

11 years agoConvert pixbuf animation demo (both copies) to GdkFrameClock
Owen W. Taylor [Wed, 20 Feb 2013 19:46:11 +0000 (14:46 -0500)]
Convert pixbuf animation demo (both copies) to GdkFrameClock

Use the frame clock instead of a 50ms timeout to animate the
spinning pixbufs.

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

11 years agoBroadway/Quartz/Win32: make event source prepare()/check() note paused status
Owen W. Taylor [Wed, 20 Feb 2013 17:27:07 +0000 (12:27 -0500)]
Broadway/Quartz/Win32: make event source prepare()/check() note paused status

When events are paused, we should not return TRUE from prepare() or check().
GTK+ handles this for events that are already in the GTK+ queue, but
we also need suppress checks for events that are in the system queue - if we
return TRUE indicating that there are events in the system queue, then we'll
call dispatch(), and do nothing. The event source will spin, and will never
run the other phases of the paint clock.

(Broadway doesn't have a window system queue separate from the GDK event queue,
but we write the function the same way for consistency.)

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

11 years agowayland: don't attempt to unqueue events when events are paused
Thomas Wood [Wed, 20 Feb 2013 13:53:59 +0000 (13:53 +0000)]
wayland: don't attempt to unqueue events when events are paused

When events are paused, we should not return TRUE from prepare() or check().
GTK+ handles this for events that are already in the GTK+ queue, but
we also need suppress checks for events that are in the system queue - if we
return TRUE indicating that there are events in the system queue, then we'll
call dispatch(), and do nothing. The event source will spin, and will never
run the other phases of the paint clock.

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

11 years agoUpdated Russian translation
Yuri Myasoedov [Thu, 21 Feb 2013 12:13:56 +0000 (16:13 +0400)]
Updated Russian translation

11 years agoRedo Completion of Visual Studio projects for gtka11y
Chun-wei Fan [Thu, 21 Feb 2013 07:48:04 +0000 (15:48 +0800)]
Redo Completion of Visual Studio projects for gtka11y

Update the Visual Studio projects for gtka11y and the completion of the
projects that go along with it.  This have been distcheck'ed on my Ubuntu
12.04 system.

11 years agoFix gtk-demo projects
Chun-wei Fan [Thu, 21 Feb 2013 07:30:41 +0000 (15:30 +0800)]
Fix gtk-demo projects

There isn't a custom CSS demo anymore, so remove that from the projects

11 years agoUpdate GDK Visual Studio projects
Chun-wei Fan [Thu, 21 Feb 2013 07:14:25 +0000 (15:14 +0800)]
Update GDK Visual Studio projects

Link to winmm.lib as well, as we are now using timeEndPeriod() and
timeBeginPeriod() since commit 5dbf814f (win32: Request higher
precision timers during animations).

11 years agofilechooserbutton: In tests, sleep after opening the dialog
Federico Mena Quintero [Thu, 21 Feb 2013 00:52:23 +0000 (18:52 -0600)]
filechooserbutton: In tests, sleep after opening the dialog

This may ensure that the dialog is actually done initializing.  We need to kill this
sleeping business and really use signals, sigh...

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agofilechooserbutton: Don't emit file-set signal when the change is not the result of...
Federico Mena Quintero [Thu, 21 Feb 2013 00:30:30 +0000 (18:30 -0600)]
filechooserbutton: Don't emit file-set signal when the change is not the result of a user action

We only emit that signal when the user confirms the button's internal GtkFileChooserDialog,
or when he drags-and-drops stuff into the button.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agofilechooserbutton: In the tests, run through the dialog more than one time
Federico Mena Quintero [Thu, 21 Feb 2013 00:28:59 +0000 (18:28 -0600)]
filechooserbutton: In the tests, run through the dialog more than one time

This ensures that data maintained by the button while the dialog opens/closes remains consistent.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agofilechooserbutton: Add tests for cancelling the dialog via closing it (delete-event...
Federico Mena Quintero [Thu, 21 Feb 2013 00:14:15 +0000 (18:14 -0600)]
filechooserbutton: Add tests for cancelling the dialog via closing it (delete-event), instead of by simulating the Cancel button (response cancel)

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agofilechooser: When stopping/clearing BROWSE model, really ensure that we end up in...
Federico Mena Quintero [Thu, 21 Feb 2013 00:02:24 +0000 (18:02 -0600)]
filechooser: When stopping/clearing BROWSE model, really ensure that we end up in LOAD_EMPTY state

Previously we could end up in a situation where browse_list_model==NULL, and yet load_state==LOAD_FINISHED.
This is not a valid state.  So, when we get rid of the list model, really ensure that we end up
in LOAD_EMPTY so nothing assumes that there is a valid list model around.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agofilechooser: Tighten up some assertions when actually selecting files in the treeview
Federico Mena Quintero [Wed, 20 Feb 2013 23:14:20 +0000 (17:14 -0600)]
filechooser: Tighten up some assertions when actually selecting files in the treeview

The model must be fully loaded, and it must be inserted in the treeview.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
11 years agoGtkUIManager Buildable implementation: Fixing leaked reference count
Tristan Van Berkom [Wed, 20 Feb 2013 09:17:14 +0000 (18:17 +0900)]
GtkUIManager Buildable implementation: Fixing leaked reference count

Committing this on behalf of Milan Crha, bug: 694162

11 years agoa11y: Only emit expandable/expanded for expander column
Benjamin Otte [Wed, 20 Feb 2013 01:42:50 +0000 (02:42 +0100)]
a11y: Only emit expandable/expanded for expander column

We don't want to emit state changes for all the cells in a row, just for
the cell in the expander column. It's the only one that reports EXPANDED
or EXPANDABLE states, after all.

Also, contains refactoring of the affected functions for all the special
cases.

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

11 years agoUpdated German translation
Benjamin Steinwender [Tue, 19 Feb 2013 23:12:17 +0000 (00:12 +0100)]
Updated German translation

11 years agoa11y: Fix copy-paste error in state flag notification
Benjamin Otte [Tue, 19 Feb 2013 22:22:48 +0000 (23:22 +0100)]
a11y: Fix copy-paste error in state flag notification

We weren't checking the removed flag but the added flag for removal
emissions, so what would happen for every state change notification was:
- on state-added, both an "added" and a "removed" event were emitted
- on state-removed, nothing

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

11 years agoAvoid loop in paint update cycle
Alexander Larsson [Tue, 19 Feb 2013 20:03:35 +0000 (21:03 +0100)]
Avoid loop in paint update cycle

Commit 1db87c897f930171646351c99af7df09dc7ec949 accidentally removed
a check for !in_paint_idle in maybe_start_idle which causes us
to create a paint loop whenever something requests a phase
inside the paint_idle.

11 years agox11: Handle case where xsettings are NULL
Benjamin Otte [Tue, 19 Feb 2013 18:55:02 +0000 (19:55 +0100)]
x11: Handle case where xsettings are NULL

11 years agox11: Fix introspection build
Benjamin Otte [Tue, 19 Feb 2013 14:37:26 +0000 (15:37 +0100)]
x11: Fix introspection build

File removal in bb4953f3e8e102264a82ea4938b7813b85320b22 wasn't checked
in here.

11 years agotests: #ifdef out unused functions
Benjamin Otte [Tue, 19 Feb 2013 13:44:49 +0000 (14:44 +0100)]
tests: #ifdef out unused functions

... that are only used in that ifdef.

11 years agox11: Get rid of XSettingsClient object
Benjamin Otte [Tue, 19 Feb 2013 13:31:03 +0000 (14:31 +0100)]
x11: Get rid of XSettingsClient object

Instead, store its variables in the GdkX11Screen.

11 years agotests: Add a test for loading images from file
Benjamin Otte [Tue, 19 Feb 2013 13:15:32 +0000 (14:15 +0100)]
tests: Add a test for loading images from file

Strictly, this belongs in gdk-pixbuf, but GtkImage should have this
working, too.

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

11 years agox11: Use _gdk_x11_get_xatom_for_display_printf()
Benjamin Otte [Mon, 18 Feb 2013 16:16:57 +0000 (17:16 +0100)]
x11: Use _gdk_x11_get_xatom_for_display_printf()

instead of keeping the atom around all the time

11 years agox11: Introduce _gdk_x11_get_xatom_for_display_printf()
Benjamin Otte [Mon, 18 Feb 2013 15:59:06 +0000 (16:59 +0100)]
x11: Introduce _gdk_x11_get_xatom_for_display_printf()

and use it instead of caching the atom in the GdkScreenX11.

11 years agox11: Don't keep an "in_init" variable
Benjamin Otte [Mon, 18 Feb 2013 14:09:49 +0000 (15:09 +0100)]
x11: Don't keep an "in_init" variable

Instead, track the init state with a boolean argument.

11 years agox11: Clean up xsettings header
Benjamin Otte [Sat, 16 Feb 2013 23:37:09 +0000 (00:37 +0100)]
x11: Clean up xsettings header

- Don't use defines for renames
- Move enum into only source file using it

11 years agox11: Get rid of XSettingsSetting
Benjamin Otte [Sat, 16 Feb 2013 23:30:06 +0000 (00:30 +0100)]
x11: Get rid of XSettingsSetting

Use GValue throughout instead.

11 years agox11: Remove extra variable
Benjamin Otte [Sat, 16 Feb 2013 22:59:07 +0000 (23:59 +0100)]
x11: Remove extra variable

Use a getter instead.

11 years agox11: Split xsettings event filter into 2 functions
Benjamin Otte [Sat, 16 Feb 2013 22:56:10 +0000 (23:56 +0100)]
x11: Split xsettings event filter into 2 functions

One for each type of window we watch.

11 years agox11: Make stored xsettings window a GdkWindow
Benjamin Otte [Sat, 16 Feb 2013 17:36:05 +0000 (18:36 +0100)]
x11: Make stored xsettings window a GdkWindow

11 years agox11: Split function into two
Benjamin Otte [Fri, 15 Feb 2013 21:32:28 +0000 (22:32 +0100)]
x11: Split function into two

Instead of a boolean is_start, have a start and an end function.

11 years agox11: Use gdk_display_flush()
Benjamin Otte [Fri, 15 Feb 2013 21:26:45 +0000 (22:26 +0100)]
x11: Use gdk_display_flush()

11 years agox11: Get selection atom useing GDK functions
Benjamin Otte [Fri, 15 Feb 2013 19:06:56 +0000 (20:06 +0100)]
x11: Get selection atom useing GDK functions

Don't call XInternAtoms ourselves.

11 years agox11: Warning improvements to xsettings code
Benjamin Otte [Fri, 15 Feb 2013 18:18:11 +0000 (19:18 +0100)]
x11: Warning improvements to xsettings code

... and using g_warning() instead of fprintf()

11 years agox11: Use usual Atom handling in xsettings code
Benjamin Otte [Fri, 15 Feb 2013 18:14:25 +0000 (19:14 +0100)]
x11: Use usual Atom handling in xsettings code

11 years agox11: Consolidate root window event setting in one place
Benjamin Otte [Fri, 15 Feb 2013 17:20:18 +0000 (18:20 +0100)]
x11: Consolidate root window event setting in one place

No need to duplicate things in xsettings code.

11 years agox11: Remove unused argument
Benjamin Otte [Fri, 15 Feb 2013 17:02:51 +0000 (18:02 +0100)]
x11: Remove unused argument

11 years agox11: Store GDK name in xsettings hash table
Benjamin Otte [Thu, 14 Feb 2013 16:20:26 +0000 (17:20 +0100)]
x11: Store GDK name in xsettings hash table

The X name is only used while reading the property, so no need to keep
it.

11 years agox11: Remove XSettingsAction type
Benjamin Otte [Thu, 14 Feb 2013 14:10:18 +0000 (15:10 +0100)]
x11: Remove XSettingsAction type

Use GdkSettingAction instead.

11 years agox11: Make xsettings callbacks code go away
Benjamin Otte [Thu, 14 Feb 2013 14:06:56 +0000 (15:06 +0100)]
x11: Make xsettings callbacks code go away

It's the same callbacks every time, so just move them into the source
file.

11 years agox11: Don't store name in XSettingsSetting anymore
Benjamin Otte [Tue, 12 Feb 2013 19:10:23 +0000 (20:10 +0100)]
x11: Don't store name in XSettingsSetting anymore

This is in preparation to switching XSettingsSetting to GValue

11 years agox11: Use boolean instead of enum for errors in xsettings code
Benjamin Otte [Tue, 12 Feb 2013 18:44:28 +0000 (19:44 +0100)]
x11: Use boolean instead of enum for errors in xsettings code

11 years agox11: Move error reporting to where the error happens
Benjamin Otte [Tue, 12 Feb 2013 18:35:46 +0000 (19:35 +0100)]
x11: Move error reporting to where the error happens

Also, use g_warning() instead of fprintf().

11 years agox11: Move length checking into return_if_fail() macro
Benjamin Otte [Tue, 12 Feb 2013 18:28:41 +0000 (19:28 +0100)]
x11: Move length checking into return_if_fail() macro

11 years agox11: Use GDK error trapping code
Benjamin Otte [Tue, 12 Feb 2013 17:48:09 +0000 (18:48 +0100)]
x11: Use GDK error trapping code

11 years agox11: Split out xsettings string reading code
Benjamin Otte [Tue, 12 Feb 2013 17:45:03 +0000 (18:45 +0100)]
x11: Split out xsettings string reading code

11 years agox11: Clean up xsettings header
Benjamin Otte [Tue, 12 Feb 2013 15:47:45 +0000 (16:47 +0100)]
x11: Clean up xsettings header

Move private struct definitions into source file, remove unneeded C++
guards.

11 years agox11: Add debugging output for xsettings code
Benjamin Otte [Tue, 12 Feb 2013 15:31:03 +0000 (16:31 +0100)]
x11: Add debugging output for xsettings code

11 years agogdk: Add a debug category for settings
Benjamin Otte [Tue, 12 Feb 2013 15:11:46 +0000 (16:11 +0100)]
gdk: Add a debug category for settings

11 years agox11: Use glib malloc funcs for XSettings
Benjamin Otte [Tue, 12 Feb 2013 13:58:44 +0000 (14:58 +0100)]
x11: Use glib malloc funcs for XSettings

11 years agox11: Call grab functions directly
Benjamin Otte [Sun, 10 Feb 2013 00:24:28 +0000 (01:24 +0100)]
x11: Call grab functions directly

... instead of going via vfuncs.

11 years agox11: Pass the GdkScreen to the XSettingsClient
Benjamin Otte [Sun, 10 Feb 2013 00:20:38 +0000 (01:20 +0100)]
x11: Pass the GdkScreen to the XSettingsClient

11 years agox11: Fold xsettings-common.[ch] into xsettings-client.[ch]
Benjamin Otte [Sun, 10 Feb 2013 00:06:58 +0000 (01:06 +0100)]
x11: Fold xsettings-common.[ch] into xsettings-client.[ch]

11 years agox11: Return XSetting without copying
Benjamin Otte [Sat, 9 Feb 2013 23:02:53 +0000 (00:02 +0100)]
x11: Return XSetting without copying

11 years agox11: Don't store last change serial
Benjamin Otte [Fri, 8 Feb 2013 12:36:16 +0000 (13:36 +0100)]
x11: Don't store last change serial

It's unused anyway

11 years agoxsettings: Remove XSettingsList type
Benjamin Otte [Sat, 2 Feb 2013 18:22:04 +0000 (19:22 +0100)]
xsettings: Remove XSettingsList type

Use GHashTable throughout

11 years agoxsettings: Use glib byte order functions
Benjamin Otte [Sat, 2 Feb 2013 18:10:02 +0000 (19:10 +0100)]
xsettings: Use glib byte order functions

11 years agoxsettings: Remove unused function
Benjamin Otte [Sat, 2 Feb 2013 14:32:23 +0000 (15:32 +0100)]
xsettings: Remove unused function

Remove xsettings_client_new() and rename
xsettings_client_new_with_grab_funcs() to xsettings_client_new()

11 years agowindow: Fix compiler warning when not building for X11
Rob Bradford [Mon, 16 Apr 2012 15:26:19 +0000 (16:26 +0100)]
window: Fix compiler warning when not building for X11

The callback function gtk_window_on_theme_variant_changed is only used on the
X11 backend (where GtkSettings is used for the settings information.)

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=674207
11 years agowayland: Synthesize fullscreen window state change
Rob Bradford [Thu, 31 Jan 2013 11:25:02 +0000 (11:25 +0000)]
wayland: Synthesize fullscreen window state change

11 years agorelease: post-release version bump
Cosimo Cecchi [Tue, 19 Feb 2013 01:50:32 +0000 (20:50 -0500)]
release: post-release version bump

11 years ago3.7.10
Cosimo Cecchi [Tue, 19 Feb 2013 01:12:01 +0000 (20:12 -0500)]
3.7.10

11 years agorelease: update NEWS for 3.7.10
Cosimo Cecchi [Mon, 18 Feb 2013 22:13:46 +0000 (17:13 -0500)]
release: update NEWS for 3.7.10

11 years agodocs: add some missing methods
Cosimo Cecchi [Tue, 19 Feb 2013 00:30:30 +0000 (19:30 -0500)]
docs: add some missing methods

11 years agodocs: add some missing gtk-doc blocks and Since tags for new API
Cosimo Cecchi [Tue, 19 Feb 2013 00:21:22 +0000 (19:21 -0500)]
docs: add some missing gtk-doc blocks and Since tags for new API

11 years agotests: workarounds to keep treeview scrolling tests running
Cosimo Cecchi [Tue, 19 Feb 2013 00:14:13 +0000 (19:14 -0500)]
tests: workarounds to keep treeview scrolling tests running

We can't safely examine allocations synchronously using
gtk_main_iteration(), as there might be not enough time for a new paint
clock tick to have expired and the allocation set on the widget.
Work this around adding g_usleep() calls before processing pending
mainloop events.

11 years agoGtkViewport: annotate the adjustment args of the constructor
Torsten Schönfeld [Sun, 17 Feb 2013 13:00:10 +0000 (14:00 +0100)]
GtkViewport: annotate the adjustment args of the constructor

NULL is accepted here, so add (allow-none).

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

11 years agoFix #673243: accelerators not visible on GtkRadioMenu
jjacky [Thu, 14 Feb 2013 18:56:54 +0000 (19:56 +0100)]
Fix #673243: accelerators not visible on GtkRadioMenu

Also fixes a bug in set_property handler, where setting group to NULL would
cause a warning.

Signed-off-by: jjacky <i.am.jack.mail@gmail.com>
11 years agowayland: attempt to determine the possible parent surface for popups
Thomas Wood [Fri, 15 Feb 2013 11:16:51 +0000 (11:16 +0000)]
wayland: attempt to determine the possible parent surface for popups

Use the surface beneath the device that created the grab as the transient
parent for the popup surfaces.

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

11 years agowayland: look further through the hierarchy for the surface with the grab
Thomas Wood [Thu, 14 Feb 2013 14:44:58 +0000 (14:44 +0000)]
wayland: look further through the hierarchy for the surface with the grab

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

11 years agoimmodule: fix a GCC warning
Cosimo Cecchi [Tue, 19 Feb 2013 00:37:20 +0000 (19:37 -0500)]
immodule: fix a GCC warning

11 years agoGdkWindow: don't leak the newly created frame clock
Owen W. Taylor [Mon, 18 Feb 2013 20:14:53 +0000 (15:14 -0500)]
GdkWindow: don't leak the newly created frame clock

11 years agogtk_widget_on_frame_clock_update: ref the widget
Owen W. Taylor [Mon, 18 Feb 2013 19:55:03 +0000 (14:55 -0500)]
gtk_widget_on_frame_clock_update: ref the widget

Handle a widget being destroyed while in a tick callback by
referencing the widget while dispatching tick callbacks.

11 years agoUpdated Serbian translation
Мирослав Николић [Mon, 18 Feb 2013 18:15:01 +0000 (19:15 +0100)]
Updated Serbian translation

11 years agoGtkAccelLabel: Don't show "+" if there's no more keys to add
Bastien Nocera [Mon, 18 Feb 2013 10:59:26 +0000 (11:59 +0100)]
GtkAccelLabel: Don't show "+" if there's no more keys to add

With the following code:
    #define INVALID_CHAR GDK_KEY_VoidSymbol - 1
    gtk_accelerator_get_label (INVALID_CHAR, GDK_SHIFT_MASK | GDK_CONTROL_MASK);
we would get this label:
    Shift+Ctrl+
instead of this label:
    Shift+Ctrl

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

11 years agowin32: Request higher precision timers during animations
Alexander Larsson [Mon, 18 Feb 2013 14:37:22 +0000 (15:37 +0100)]
win32: Request higher precision timers during animations

The default windows timer resolution is 16msec, which is too little
for fluent animations (say at 60Hz). So, while a paint clock is
active we temporarily raise the timer resolution to 1 msec.

11 years agoAdd gdk_frame_clock_begin/end_updating()
Owen W. Taylor [Fri, 15 Feb 2013 22:04:39 +0000 (17:04 -0500)]
Add gdk_frame_clock_begin/end_updating()

Add an API to start or stop continually updating the frame clock.
This is a slight convenience for applcations and avoids the problem
of getting one more frame run after an animation stops, but the
primary motivation for this is because it looks like we might have
to use timeBeginPeriod()/timeEndPeriod() on Windows to get reasonably
accurate timing, and for that we'll need to know if there is an
animation running.

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

11 years ago[l10n] Update Japanese translation
Shushi KUROSE [Mon, 18 Feb 2013 14:36:53 +0000 (23:36 +0900)]
[l10n] Update Japanese translation

11 years ago[l10n] Update Japanese translation
Jiro Matsuzawa [Mon, 18 Feb 2013 14:32:29 +0000 (23:32 +0900)]
[l10n] Update Japanese translation

Merge the latest pot.

11 years agoRemove unnecessary copy of GdkFrameClockIdlePrivate
Alexander Larsson [Mon, 18 Feb 2013 10:23:22 +0000 (11:23 +0100)]
Remove unnecessary copy of GdkFrameClockIdlePrivate

11 years agowin32: Fix build
Alexander Larsson [Mon, 18 Feb 2013 10:20:40 +0000 (11:20 +0100)]
win32: Fix build

gdkwindown-win32.c included windows.h directly rather than via gdkwin32.h
which broke the build for me at least. Instead rely on it being included in
gdkwin32.h and things work right.

11 years agoGtkEntry: Fix text handle painting
Alexander Larsson [Mon, 18 Feb 2013 08:38:11 +0000 (09:38 +0100)]
GtkEntry: Fix text handle painting

We only draw the main entry on should_draw (widget->window), because
otherwise we also draw it on the GtkTextHandle widgets.

This is necessary due to the recent change for that to not return
TRUE and swallow the rest of the drawing operation.

11 years agoAdd a few missing gtk_widget_unregister_window calls
Alexander Larsson [Mon, 18 Feb 2013 08:35:58 +0000 (09:35 +0100)]
Add a few missing gtk_widget_unregister_window calls

This was causing warnings on widget unparent like:

Gdk-CRITICAL **: gdk_window_has_native: assertion `GDK_IS_WINDOW (window)' failed

Becasue the window was not properly removed from the lists on unrealize.

11 years agoUpdated Czech translation
Marek Černocký [Sun, 17 Feb 2013 19:06:53 +0000 (20:06 +0100)]
Updated Czech translation

11 years agoUpdated Polish translation
Piotr Drąg [Sun, 17 Feb 2013 18:48:15 +0000 (19:48 +0100)]
Updated Polish translation

11 years agoGdkWindowX11: the root window is not a toplevel
Owen W. Taylor [Sat, 16 Feb 2013 16:54:12 +0000 (11:54 -0500)]
GdkWindowX11: the root window is not a toplevel

The macros we had for checking for toplevel windows were passing
through the root window, which was not intentional and meant that
for the root window WINDOW_IS_TOPLEVEL() returned TRUE but
window->impl->toplevel was NULL, causing gdk_window_create_cairo_surface()
to crash.

11 years ago[entry] unregister icon windows
Paolo Borelli [Sat, 16 Feb 2013 15:28:45 +0000 (16:28 +0100)]
[entry] unregister icon windows