[gnome-commander/gcmd-1-10] Fixed warning at runtime, added comment
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-10] Fixed warning at runtime, added comment
- Date: Thu, 14 May 2020 20:49:56 +0000 (UTC)
commit 97a045240adb74a5c5a2966832ae33c5c1ff462f
Author: Uwe Scholz <u scholz83 gmx de>
Date: Thu May 14 21:05:59 2020 +0200
Fixed warning at runtime, added comment
src/gnome-cmd-file-list.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 09e07c2e..375782af 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -687,6 +687,7 @@ void GnomeCmdFileList::create_column_titles()
gtk_widget_show (priv->column_labels[i]);
gtk_box_pack_start (GTK_BOX (hbox), priv->column_labels[i], TRUE, TRUE, 0);
+ // ToDo: Replace GtkPixmap with GtkImage
pixmap = gtk_pixmap_new (pm, bm);
g_object_ref (pixmap);
g_object_set_data_full (*this, "column-pixmap", pixmap, g_object_unref);
@@ -1492,7 +1493,7 @@ static gint on_button_release (GtkWidget *widget, GdkEventButton *event, GnomeCm
return TRUE;
}
else
- if (event->button == 3)
+ if (event->button == 3 && fl->priv->right_mb_timeout_id > 0)
g_source_remove (fl->priv->right_mb_timeout_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]