[notification-daemon] don't use deprecated GtkRcStyle
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [notification-daemon] don't use deprecated GtkRcStyle
- Date: Sat, 29 Nov 2014 13:28:32 +0000 (UTC)
commit 2f0409becde8ac9276afb4210e7efca087189310
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Nov 29 14:42:58 2014 +0200
don't use deprecated GtkRcStyle
src/nd-bubble.c | 6 ------
src/nd-notification-box.c | 6 ------
2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/nd-bubble.c b/src/nd-bubble.c
index 06817bc..31ce126 100644
--- a/src/nd-bubble.c
+++ b/src/nd-bubble.c
@@ -529,7 +529,6 @@ nd_bubble_init (NdBubble *bubble)
GtkWidget *image;
GtkWidget *alignment;
AtkObject *atkobj;
- GtkRcStyle *rcstyle;
GdkScreen *screen;
GdkVisual *visual;
@@ -609,11 +608,6 @@ nd_bubble_init (NdBubble *bubble)
G_CALLBACK (on_close_button_clicked),
bubble);
- rcstyle = gtk_rc_style_new ();
- rcstyle->xthickness = rcstyle->ythickness = 0;
- gtk_widget_modify_style (close_button, rcstyle);
- g_object_unref (rcstyle);
-
atkobj = gtk_widget_get_accessible (close_button);
atk_action_set_description (ATK_ACTION (atkobj), 0,
"Closes the notification.");
diff --git a/src/nd-notification-box.c b/src/nd-notification-box.c
index 747140e..4bcf7d7 100644
--- a/src/nd-notification-box.c
+++ b/src/nd-notification-box.c
@@ -275,7 +275,6 @@ nd_notification_box_init (NdNotificationBox *notification_box)
GtkWidget *vbox;
GtkWidget *alignment;
AtkObject *atkobj;
- GtkRcStyle *rcstyle;
notification_box->priv = ND_NOTIFICATION_BOX_GET_PRIVATE (notification_box);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
@@ -316,11 +315,6 @@ nd_notification_box_init (NdNotificationBox *notification_box)
G_CALLBACK (on_close_button_clicked),
notification_box);
- rcstyle = gtk_rc_style_new ();
- rcstyle->xthickness = rcstyle->ythickness = 0;
- gtk_widget_modify_style (notification_box->priv->close_button, rcstyle);
- g_object_unref (rcstyle);
-
atkobj = gtk_widget_get_accessible (notification_box->priv->close_button);
atk_action_set_description (ATK_ACTION (atkobj), 0,
"Closes the notification.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]