[mutter] xprops: Some more cardinal-related hygiene
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] xprops: Some more cardinal-related hygiene
- Date: Tue, 23 Jun 2015 22:41:32 +0000 (UTC)
commit 7f3ada78312c34c00ee8137922afeb5bbb712da0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jun 23 15:32:07 2015 -0700
xprops: Some more cardinal-related hygiene
src/core/screen.c | 2 +-
src/x11/window-x11.c | 4 ++--
src/x11/xprops.c | 6 +++---
src/x11/xprops.h | 6 +++---
4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/core/screen.c b/src/core/screen.c
index 6ef5dd0..b3b9b9d 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -750,7 +750,7 @@ void
meta_screen_init_workspaces (MetaScreen *screen)
{
MetaWorkspace *current_workspace;
- gulong current_workspace_index = 0;
+ uint32_t current_workspace_index = 0;
guint32 timestamp;
g_return_if_fail (META_IS_SCREEN (screen));
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index b69fb79..bac473d 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -2774,7 +2774,7 @@ maybe_filter_xwindow (MetaDisplay *display,
*/
if (!must_be_viewable || attrs->map_state == IsViewable)
{
- gulong old_state;
+ uint32_t old_state;
if (!meta_prop_get_cardinal_with_atom_type (display, xwindow,
display->atom_WM_STATE,
@@ -2910,7 +2910,7 @@ meta_window_x11_new (MetaDisplay *display,
if (must_be_viewable && attrs.map_state != IsViewable)
{
/* Only manage if WM_STATE is IconicState or NormalState */
- gulong state;
+ uint32_t state;
/* WM_STATE isn't a cardinal, it's type WM_STATE, but is an int */
if (!(meta_prop_get_cardinal_with_atom_type (display, xwindow,
diff --git a/src/x11/xprops.c b/src/x11/xprops.c
index 56b607b..b9ad50d 100644
--- a/src/x11/xprops.c
+++ b/src/x11/xprops.c
@@ -703,7 +703,7 @@ gboolean
meta_prop_get_cardinal (MetaDisplay *display,
Window xwindow,
Atom xatom,
- gulong *cardinal_p)
+ uint32_t *cardinal_p)
{
return meta_prop_get_cardinal_with_atom_type (display, xwindow, xatom,
XA_CARDINAL, cardinal_p);
@@ -712,7 +712,7 @@ meta_prop_get_cardinal (MetaDisplay *display,
static gboolean
cardinal_with_atom_type_from_results (GetPropertyResults *results,
Atom prop_type,
- gulong *cardinal_p)
+ uint32_t *cardinal_p)
{
if (!validate_or_free_results (results, 32, prop_type, TRUE))
return FALSE;
@@ -729,7 +729,7 @@ meta_prop_get_cardinal_with_atom_type (MetaDisplay *display,
Window xwindow,
Atom xatom,
Atom prop_type,
- gulong *cardinal_p)
+ uint32_t *cardinal_p)
{
GetPropertyResults results;
diff --git a/src/x11/xprops.h b/src/x11/xprops.h
index d30af7c..80ad73d 100644
--- a/src/x11/xprops.h
+++ b/src/x11/xprops.h
@@ -115,12 +115,12 @@ gboolean meta_prop_get_window (MetaDisplay *display,
gboolean meta_prop_get_cardinal (MetaDisplay *display,
Window xwindow,
Atom xatom,
- gulong *cardinal_p);
+ uint32_t *cardinal_p);
gboolean meta_prop_get_cardinal_with_atom_type (MetaDisplay *display,
Window xwindow,
Atom xatom,
Atom prop_type,
- gulong *cardinal_p);
+ uint32_t *cardinal_p);
gboolean meta_prop_get_text_property (MetaDisplay *display,
Window xwindow,
Atom xatom,
@@ -174,7 +174,7 @@ typedef struct
char *str;
MotifWmHints *motif_hints;
Window xwindow;
- gulong cardinal;
+ uint32_t cardinal;
XWMHints *wm_hints;
XClassHint class_hint;
XSyncCounter xcounter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]