[Xfce4-commits] [panel-plugins/xfce4-clipman-plugin] 06/15: Trying to be more robust - needs to be fixed somehow

noreply at xfce.org noreply at xfce.org
Wed Jun 1 22:39:59 CEST 2016


This is an automated email from the git hooks/post-receive script.

schuellerf pushed a commit to branch master
in repository panel-plugins/xfce4-clipman-plugin.

commit 0aec1f3e4454232881be4431aa90f964108a7f5d
Author: Florian Schüller <florian.schueller at gmail.com>
Date:   Wed May 25 00:08:02 2016 +0200

    Trying to be more robust - needs to be fixed somehow
---
 panel-plugin/menu.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/menu.c b/panel-plugin/menu.c
index ca8725a..8d134a1 100644
--- a/panel-plugin/menu.c
+++ b/panel-plugin/menu.c
@@ -161,7 +161,8 @@ cb_set_clipboard (GtkMenuItem *mi, const ClipmanHistoryItem *item)
       break;
 
     default:
-      g_assert_not_reached ();
+      DBG("Ignoring unknown history type %d", item->type);
+      return;
     }
 
   {
@@ -316,7 +317,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
           break;
 
         default:
-          g_assert_not_reached ();
+          DBG("Ignoring unknown history type %d", item->type);
+          continue;
         }
 
       g_signal_connect (mi, "activate", G_CALLBACK (cb_set_clipboard), item);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list