mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
map "gtk-touchscreen-mode" to the "Gtk/TouchscreenMode" XSettings
2006-02-27 Michael Natterer <mitch@imendio.com> * gdk/x11/gdksettings.c: map "gtk-touchscreen-mode" to the "Gtk/TouchscreenMode" XSettings property, remove trailing whitespace. * gdk/x11/checksettings.c: #include <string.h> and sprinkled some newlines.
This commit is contained in:
parent
e33012b8e0
commit
7324be3c3a
@ -1,3 +1,12 @@
|
|||||||
|
2006-02-27 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdksettings.c: map "gtk-touchscreen-mode" to the
|
||||||
|
"Gtk/TouchscreenMode" XSettings property, remove trailing
|
||||||
|
whitespace.
|
||||||
|
|
||||||
|
* gdk/x11/checksettings.c: #include <string.h> and sprinkled some
|
||||||
|
newlines.
|
||||||
|
|
||||||
Mon Feb 27 14:52:50 2006 Tim Janik <timj@imendio.com>
|
Mon Feb 27 14:52:50 2006 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
* gdkevents-x11.c:
|
* gdkevents-x11.c:
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2006-02-27 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdksettings.c: map "gtk-touchscreen-mode" to the
|
||||||
|
"Gtk/TouchscreenMode" XSettings property, remove trailing
|
||||||
|
whitespace.
|
||||||
|
|
||||||
|
* gdk/x11/checksettings.c: #include <string.h> and sprinkled some
|
||||||
|
newlines.
|
||||||
|
|
||||||
Mon Feb 27 14:52:50 2006 Tim Janik <timj@imendio.com>
|
Mon Feb 27 14:52:50 2006 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
* gdkevents-x11.c:
|
* gdkevents-x11.c:
|
||||||
|
@ -16,13 +16,17 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include "gdksettings.c"
|
#include "gdksettings.c"
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc,
|
main (int argc,
|
||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
guint i, accu = 0;
|
guint i, accu = 0;
|
||||||
|
|
||||||
for (i = 0; i < GDK_SETTINGS_N_ELEMENTS(); i++)
|
for (i = 0; i < GDK_SETTINGS_N_ELEMENTS(); i++)
|
||||||
{
|
{
|
||||||
if (gdk_settings_map[i].xsettings_offset != accu)
|
if (gdk_settings_map[i].xsettings_offset != accu)
|
||||||
@ -33,6 +37,8 @@ main (int argc,
|
|||||||
accu += strlen (gdk_settings_names + accu) + 1;
|
accu += strlen (gdk_settings_names + accu) + 1;
|
||||||
// g_print ("%u) ok.\n", i);
|
// g_print ("%u) ok.\n", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_print ("checksettings: all ok.\n");
|
g_print ("checksettings: all ok.\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,8 @@ static const char gdk_settings_names[] =
|
|||||||
"Xft/HintStyle\0" "gtk-xft-hintstyle\0"
|
"Xft/HintStyle\0" "gtk-xft-hintstyle\0"
|
||||||
"Xft/RGBA\0" "gtk-xft-rgba\0"
|
"Xft/RGBA\0" "gtk-xft-rgba\0"
|
||||||
"Xft/DPI\0" "gtk-xft-dpi\0"
|
"Xft/DPI\0" "gtk-xft-dpi\0"
|
||||||
"Net/FallbackIconTheme\0" "gtk-fallback-icon-theme\0";
|
"Net/FallbackIconTheme\0" "gtk-fallback-icon-theme\0"
|
||||||
|
"Gtk/TouchscreenMode\0" "gtk-touchscreen-mode\0";
|
||||||
|
|
||||||
static const struct
|
static const struct
|
||||||
{
|
{
|
||||||
@ -105,5 +106,6 @@ static const struct
|
|||||||
{ 1165, 1179 },
|
{ 1165, 1179 },
|
||||||
{ 1197, 1206 },
|
{ 1197, 1206 },
|
||||||
{ 1219, 1227 },
|
{ 1219, 1227 },
|
||||||
{ 1239, 1261 }
|
{ 1239, 1261 },
|
||||||
|
{ 1285, 1305 }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user