[gnome-photos] delete-notification: Simplify code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] delete-notification: Simplify code
- Date: Tue, 12 Aug 2014 00:15:14 +0000 (UTC)
commit bd7fa2765210bbc6498b1e25e8d1806a4be79398
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Aug 12 00:46:06 2014 +0200
delete-notification: Simplify code
src/photos-delete-notification.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-delete-notification.c b/src/photos-delete-notification.c
index 4fee7d6..56266af 100644
--- a/src/photos-delete-notification.c
+++ b/src/photos-delete-notification.c
@@ -69,13 +69,8 @@ photos_delete_notification_remove_timeout (PhotosDeleteNotification *self)
static void
photos_delete_notification_destroy (PhotosDeleteNotification *self)
{
- GtkWidget *parent;
-
photos_delete_notification_remove_timeout (self);
-
- parent = gtk_widget_get_parent (GTK_WIDGET (self));
- if (parent != NULL)
- gtk_container_remove (GTK_CONTAINER (parent), GTK_WIDGET (self));
+ gtk_widget_destroy (GTK_WIDGET (self));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]