commit 01d8531b4f9f625e99f332ad21baba903dd2ac0a
Author: phantomjinx <p.g.richard...@phantomjinx.co.uk>
Date:   Sat Jan 1 22:09:17 2011 +0000

    Repository info view
    
    * infoview.c
     * Some more sensible destroying of widgets
    
    * plugin.c
     * Better label for 'open' menu item

 plugins/info_display/infoview.c |    9 ++++-----
 plugins/info_display/plugin.c   |    2 +-
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/plugins/info_display/infoview.c b/plugins/info_display/infoview.c
index 1639dda..61580a6 100644
--- a/plugins/info_display/infoview.c
+++ b/plugins/info_display/infoview.c
@@ -227,12 +227,11 @@ void destroy_info_view() {
     unregister_info_update_playlist_view(on_info_view_update_playlist_view);
     unregister_info_update_totals_view(on_info_view_update_totals_view);
 
-    g_object_unref(info_view->store);
-    g_object_unref(info_view->tree);
-
-    if (info_view->window) {
+    if (info_view->window && GTK_IS_WIDGET(info_view->window)) {
         gtk_widget_destroy(info_view->window);
     }
 
-    g_free(info_view);
+    info_view->tree = NULL;
+    info_view->store = NULL;
+    info_view = NULL;
 }
diff --git a/plugins/info_display/plugin.c b/plugins/info_display/plugin.c
index 49e57e1..2a56a30 100644
--- a/plugins/info_display/plugin.c
+++ b/plugins/info_display/plugin.c
@@ -45,7 +45,7 @@ static GtkActionEntry info_actions[] =
         {
             "ActionDisplayInfoView", /* Action name */
             GTK_STOCK_DIALOG_INFO, /* Stock icon */
-            N_("_Info View"), /* Display label */
+            N_("_Open Repository Information View"), /* Display label */
             NULL, /* short-cut */
             NULL, /* Tooltip */
             G_CALLBACK (on_info_view_open) /* callback */

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to