summaryrefslogtreecommitdiff
path: root/src/msd-osd-window.c
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-10-24 19:56:51 +0800
committerraveit65 <[email protected]>2023-11-06 12:56:20 +0100
commit688ec2f47167fcca1c3e14854b69640479422794 (patch)
tree4f4f2a806da2dca2bfc13aea2a74fa0a08fdb4a4 /src/msd-osd-window.c
parent9a8cfd772538539776654401d7a1293595405c90 (diff)
downloadmate-power-manager-688ec2f47167fcca1c3e14854b69640479422794.tar.bz2
mate-power-manager-688ec2f47167fcca1c3e14854b69640479422794.tar.xz
Remove compilation warning fix data type format error
Diffstat (limited to 'src/msd-osd-window.c')
-rw-r--r--src/msd-osd-window.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/msd-osd-window.c b/src/msd-osd-window.c
index 1b64ec0..e6ebc0b 100644
--- a/src/msd-osd-window.c
+++ b/src/msd-osd-window.c
@@ -356,7 +356,9 @@ msd_osd_window_constructor (GType type,
guint n_construct_properties,
GObjectConstructParam *construct_params)
{
- GObject *object;
+ GObject *object;
+ GtkWidget *widget;
+ GtkStyleContext *style_context;
object = G_OBJECT_CLASS (msd_osd_window_parent_class)->constructor (type, n_construct_properties, construct_params);
@@ -368,8 +370,8 @@ msd_osd_window_constructor (GType type,
"focus-on-map", FALSE,
NULL);
- GtkWidget *widget = GTK_WIDGET (object);
- GtkStyleContext *style_context = gtk_widget_get_style_context (widget);
+ widget = GTK_WIDGET (object);
+ style_context = gtk_widget_get_style_context (widget);
gtk_style_context_add_class (style_context, "osd");
return object;
@@ -435,7 +437,8 @@ msd_osd_window_is_valid (MsdOsdWindow *window)
static void
msd_osd_window_init (MsdOsdWindow *window)
{
- GdkScreen *screen;
+ GdkScreen *screen;
+ GtkStyleContext *style;
window->priv = msd_osd_window_get_instance_private (window);
@@ -451,7 +454,7 @@ msd_osd_window_init (MsdOsdWindow *window)
gtk_window_set_decorated (GTK_WINDOW (window), FALSE);
gtk_widget_set_app_paintable (GTK_WIDGET (window), TRUE);
- GtkStyleContext *style = gtk_widget_get_style_context (GTK_WIDGET (window));
+ style = gtk_widget_get_style_context (GTK_WIDGET (window));
gtk_style_context_add_class (style, "window-frame");
/* assume 110x110 on a 640x480 display and scale from there */