[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [oxygen-gtk] src: added exit callback to make sure everything is properly de-allocated
From: Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date: 2014-01-19 19:32:18
Message-ID: E1W4y6U-0003wR-2A () scm ! kde ! org
[Download RAW message or body]
Git commit 8bdecf7e5c6199d66699618419b7216f78559517 by Hugo Pereira Da Cost=
a.
Committed on 17/01/2014 at 14:38.
Pushed by hpereiradacosta into branch 'master'.
added exit callback to make sure everything is properly de-allocated
M +10 -0 src/oxygentheme.cpp
http://commits.kde.org/oxygen-gtk/8bdecf7e5c6199d66699618419b7216f78559517
diff --git a/src/oxygentheme.cpp b/src/oxygentheme.cpp
index 509c2da..641c723 100644
--- a/src/oxygentheme.cpp
+++ b/src/oxygentheme.cpp
@@ -42,6 +42,13 @@
#include <sys/stat.h>
=
//_________________________________________________
+int theme_exit_callback( gpointer )
+{
+ theme_exit();
+ return false;
+}
+
+//_________________________________________________
void theme_init( GTypeModule* module )
{
=
@@ -55,6 +62,9 @@ void theme_init( GTypeModule* module )
// style initialization
Oxygen::Style::instance().initialize();
=
+ // add quit function to make sure theme is de-allocated properly
+ gtk_quit_add( gtk_main_level(), theme_exit_callback, 0x0 );
+
}
=
//_________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic