[Goodies-commits] r3121 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Mon Sep 3 19:20:59 CEST 2007


Author: stephan
Date: 2007-09-03 17:20:59 +0000 (Mon, 03 Sep 2007)
New Revision: 3121

Modified:
   ristretto/trunk/src/main.c
   ristretto/trunk/src/navigator.c
Log:
Page-Up/Page-Down no longer skip an entry.
replaced check with an assertion.



Modified: ristretto/trunk/src/main.c
===================================================================
--- ristretto/trunk/src/main.c	2007-09-03 16:44:32 UTC (rev 3120)
+++ ristretto/trunk/src/main.c	2007-09-03 17:20:59 UTC (rev 3121)
@@ -667,7 +667,7 @@
 cb_rstto_key_press_event(GtkWidget *widget, GdkEventKey *event, RsttoNavigator *navigator)
 {
     GtkWindow *window = GTK_WINDOW(widget);
-    if(!gtk_window_activate_key(window, event))
+    if(gtk_window_activate_key(window, event) == FALSE)
     {
         switch(event->keyval)
         {
@@ -693,7 +693,7 @@
                 break;
         }
     }
-    return FALSE;
+    return TRUE;
 }
 
 static void

Modified: ristretto/trunk/src/navigator.c
===================================================================
--- ristretto/trunk/src/navigator.c	2007-09-03 16:44:32 UTC (rev 3120)
+++ ristretto/trunk/src/navigator.c	2007-09-03 17:20:59 UTC (rev 3121)
@@ -474,8 +474,7 @@
 GdkPixbuf *
 rstto_navigator_entry_get_pixbuf(RsttoNavigatorEntry *entry)
 {
-    if(G_UNLIKELY (entry == NULL))
-      return NULL;
+    g_return_val_if_fail(entry, NULL);
 
     if(!entry->pixbuf)
     {




More information about the Goodies-commits mailing list