[ekiga] Ekiga: Fixed warnings.



commit aa0ccda51ddfc8ef25bd4cc1357fbc08fc60e225
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Oct 25 13:33:52 2015 +0100

    Ekiga: Fixed warnings.

 lib/engine/gui/gtk-frontend/ekiga-app.cpp |    1 -
 lib/gui/gm-entry.c                        |    2 +-
 lib/gui/gm-info-bar.c                     |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/ekiga-app.cpp b/lib/engine/gui/gtk-frontend/ekiga-app.cpp
index 511612f..7b9207e 100644
--- a/lib/engine/gui/gtk-frontend/ekiga-app.cpp
+++ b/lib/engine/gui/gtk-frontend/ekiga-app.cpp
@@ -707,7 +707,6 @@ gm_application_command_line (GApplication *app,
 static void
 gm_application_class_init (GmApplicationClass *klass)
 {
-  GObjectClass *object_class = G_OBJECT_CLASS (klass);
   GApplicationClass *app_class = G_APPLICATION_CLASS (klass);
 
   app_class->startup = gm_application_startup;
diff --git a/lib/gui/gm-entry.c b/lib/gui/gm-entry.c
index 39e9641..5689706 100644
--- a/lib/gui/gm-entry.c
+++ b/lib/gui/gm-entry.c
@@ -465,7 +465,7 @@ gm_entry_set_activate_icon (GmEntry *self,
 const gchar *
 gm_entry_get_activate_icon (GmEntry *self)
 {
-  g_return_val_if_fail (GM_IS_ENTRY (self), TRUE);
+  g_return_val_if_fail (GM_IS_ENTRY (self), NULL);
 
   return self->priv->activate_icon;
 }
diff --git a/lib/gui/gm-info-bar.c b/lib/gui/gm-info-bar.c
index 1558034..55e2c6a 100644
--- a/lib/gui/gm-info-bar.c
+++ b/lib/gui/gm-info-bar.c
@@ -86,7 +86,7 @@ static void gm_info_bar_display_message (GmInfoBar *self,
 static gboolean
 on_info_bar_delayed_hide (gpointer self)
 {
-  g_return_if_fail (GM_IS_INFO_BAR (self));
+  g_return_val_if_fail (GM_IS_INFO_BAR (self), FALSE);
   GmInfoBar *bar = GM_INFO_BAR (self);
 
   /* Display (again) the new last element or hide the infobar */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]