[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [oxygen-gtk/1.4] 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:33:29
Message-ID: E1W4y7d-0003zM-A8 () scm ! kde ! org
[Download RAW message or body]
Git commit 63ca88618a2cc4fc21bae561fe1fd7b389e10acd by Hugo Pereira Da Cost=
a.
Committed on 17/01/2014 at 14:38.
Pushed by hpereiradacosta into branch '1.4'.
added exit callback to make sure everything is properly de-allocated
M +10 -0 src/oxygentheme.cpp
http://commits.kde.org/oxygen-gtk/63ca88618a2cc4fc21bae561fe1fd7b389e10acd
diff --git a/src/oxygentheme.cpp b/src/oxygentheme.cpp
index 208cb28..a68bbfa 100644
--- a/src/oxygentheme.cpp
+++ b/src/oxygentheme.cpp
@@ -43,6 +43,13 @@
=
=
//_________________________________________________
+int theme_exit_callback( gpointer )
+{
+ theme_exit();
+ return false;
+}
+
+//_________________________________________________
void theme_init( GTypeModule* module )
{
=
@@ -57,6 +64,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