зеркало из https://github.com/mozilla/pjs.git
Bug 533560 - Volume control does not control zoom level [r=dougt]
This commit is contained in:
Родитель
5a40491065
Коммит
d42b9f7892
|
@ -39,6 +39,7 @@
|
|||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#ifdef MOZ_PLATFORM_MAEMO
|
||||
// needed to include hildon parts in gtk.h
|
||||
#define MAEMO_CHANGES
|
||||
#endif
|
||||
|
||||
|
@ -62,6 +63,7 @@
|
|||
#include <gtk/gtk.h>
|
||||
#ifdef MOZ_X11
|
||||
#include <gdk/gdkx.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
#ifdef AIX
|
||||
#include <X11/keysym.h>
|
||||
|
@ -4258,6 +4260,18 @@ nsWindow::Create(nsIWidget *aParent,
|
|||
g_signal_connect_after(default_settings,
|
||||
"notify::gtk-font-name",
|
||||
G_CALLBACK(theme_changed_cb), this);
|
||||
|
||||
#ifdef MOZ_PLATFORM_MAEMO
|
||||
if (mWindowType == eWindowType_toplevel) {
|
||||
GdkWindow *gdkwin = mShell->window;
|
||||
|
||||
// Tell maemo-status-volume daemon to ungrab keys
|
||||
gulong volume_set = 1;
|
||||
GdkAtom keys = gdk_atom_intern("_HILDON_ZOOM_KEY_ATOM", FALSE);
|
||||
gdk_property_change(gdkwin, keys, gdk_x11_xatom_to_atom(XA_INTEGER),
|
||||
32, GDK_PROP_MODE_REPLACE, (const guchar *) &volume_set, 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (mContainer) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче