summaryrefslogtreecommitdiff
path: root/mate-panel
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel')
-rw-r--r--mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c3
-rw-r--r--mate-panel/panel-background.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c b/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c
index a74e1883..ca70915e 100644
--- a/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c
+++ b/mate-panel/libmate-panel-applet-private/mate-panel-applet-frame-dbus.c
@@ -330,8 +330,7 @@ mate_panel_applet_frame_dbus_finalize (GObject *object)
MatePanelAppletFrameDBus *frame = MATE_PANEL_APPLET_FRAME_DBUS (object);
if (frame->priv->bg_cancellable)
- g_object_unref (frame->priv->bg_cancellable);
- frame->priv->bg_cancellable = NULL;
+ g_cancellable_cancel (frame->priv->bg_cancellable);
G_OBJECT_CLASS (mate_panel_applet_frame_dbus_parent_class)->finalize (object);
}
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index 31930bd3..35018409 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -106,12 +106,12 @@ void panel_background_apply_css (GtkWidget* widget)
gtk_widget_reset_style(widget);
provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (provider,
- ".-mate-custom-panel-background{\n"
+ ".mate-custom-panel-background{\n"
" background-color: rgba (0, 0, 0, 0);\n"
" background-image: none;\n"
"}",
-1, NULL);
- gtk_style_context_add_class (context, "-mate-custom-panel-background");
+ gtk_style_context_add_class (context, "mate-custom-panel-background");
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);