[gnome-commander/gcmd-1-3] noop: code cleanup
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-3] noop: code cleanup
- Date: Sat, 1 Aug 2009 14:32:37 +0000 (UTC)
commit 50f73a596718e2ba09e86bd1634a687ee01ef7a9
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat Aug 1 14:38:44 2009 +0200
noop: code cleanup
src/gnome-cmd-main-win.cc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 800c4d5..b090acb 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -137,7 +137,6 @@ static void gnome_cmd_main_win_real_switch_fs (GnomeCmdMainWin *mw, GnomeCmdFile
gint gnome_cmd_key_snooper(GtkWidget *grab_widget, GdkEventKey *event, GnomeCmdMainWin *mw)
{
g_return_val_if_fail (mw!=NULL, FALSE);
- g_return_val_if_fail (mw->priv!=NULL, FALSE);
if (event->type!=GDK_KEY_PRESS)
return FALSE;
@@ -154,7 +153,7 @@ gint gnome_cmd_key_snooper(GtkWidget *grab_widget, GdkEventKey *event, GnomeCmdM
return FALSE;
GnomeCmdFileSelector *fs = mw->fs(ACTIVE);
- if (fs==NULL || fs->file_list()==NULL)
+ if (!fs || !fs->file_list())
return FALSE;
if (!GTK_WIDGET_HAS_FOCUS (GTK_WIDGET (fs->file_list())))
@@ -1244,7 +1243,7 @@ gboolean GnomeCmdMainWin::key_pressed(GdkEventKey *event)
switch (event->keyval)
{
case GDK_Tab:
- // hack to avoid the default handling of the tab-key
+ // hack to avoid the default handling of TAB
clear_event_key (event);
switch_fs(fs(INACTIVE));
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]