parent
b96a5d3f30
commit
998f019710
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPONAME=gnome-commander
|
||||||
|
GITURL=https://gitlab.gnome.org/GNOME/${REPONAME}.git
|
||||||
|
BRANCH=gcmd-1-12
|
||||||
|
|
||||||
|
DATE=$(date '+%Y%m%d')
|
||||||
|
TIME=$(date '+%H%M')
|
||||||
|
|
||||||
|
TARNAME=${REPONAME}-${DATE}T${TIME}.tar.gz
|
||||||
|
|
||||||
|
PWDDIR=$(pwd)
|
||||||
|
TMPDIR=$(mktemp -d /var/tmp/${REPONAME}-XXXXXX)
|
||||||
|
pushd $TMPDIR
|
||||||
|
|
||||||
|
git clone --mirror $GITURL
|
||||||
|
tar czf ${TARNAME} ${REPONAME}.git/
|
||||||
|
|
||||||
|
pushd ${REPONAME}.git/
|
||||||
|
git log --first-parent --format=fuller ${BRANCH} | head -n 12
|
||||||
|
popd
|
||||||
|
|
||||||
|
cp -p ${TARNAME} $PWDDIR
|
||||||
|
popd
|
||||||
|
rm -rf $TMPDIR
|
@ -1,96 +0,0 @@
|
|||||||
From aa40e0ee762dce8f33af945a002bab52257486ad Mon Sep 17 00:00:00 2001
|
|
||||||
From: Uwe Scholz <u.scholz83@gmx.de>
|
|
||||||
Date: Mon, 22 Feb 2021 22:48:38 +0100
|
|
||||||
Subject: [PATCH] Open properties popup by keypress at the position of the
|
|
||||||
file/directory in the file list, fixing #96
|
|
||||||
|
|
||||||
---
|
|
||||||
NEWS | 1 +
|
|
||||||
doc/C/releases.xml | 3 +++
|
|
||||||
src/gnome-cmd-file-list.cc | 47 ++++++++++++++++++++++++++------------
|
|
||||||
3 files changed, 36 insertions(+), 15 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
|
|
||||||
index d4f1d417..d21578e2 100644
|
|
||||||
--- a/src/gnome-cmd-file-list.cc
|
|
||||||
+++ b/src/gnome-cmd-file-list.cc
|
|
||||||
@@ -808,28 +808,45 @@ static char *build_selected_file_list (GnomeCmdFileList *fl, int *file_list_len)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-static void show_file_popup (GnomeCmdFileList *fl, GdkEventButton *event)
|
|
||||||
+static void get_popup_pos (GtkMenu *menu, gint *x, gint *y, gboolean push_in, GnomeCmdFileList *gnomeCmdFileList)
|
|
||||||
{
|
|
||||||
- // create the popup menu
|
|
||||||
- GtkWidget *menu = gnome_cmd_file_popmenu_new (fl);
|
|
||||||
- if (!menu) return;
|
|
||||||
+ g_return_if_fail (GNOME_CMD_IS_FILE_LIST (gnomeCmdFileList));
|
|
||||||
|
|
||||||
- g_object_ref (menu);
|
|
||||||
- g_object_set_data_full (*fl, "file_popup_menu", menu, g_object_unref);
|
|
||||||
+ gint w, h;
|
|
||||||
|
|
||||||
- gtk_menu_popup (GTK_MENU (menu), nullptr, nullptr, nullptr, fl, event->button, event->time);
|
|
||||||
+ get_focus_row_coordinates (gnomeCmdFileList, *x, *y, w, h);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-inline void show_file_popup_with_warp (GnomeCmdFileList *fl)
|
|
||||||
+static void show_file_popup (GnomeCmdFileList *fl, GdkEventButton *event)
|
|
||||||
{
|
|
||||||
- gint x, y, w, h;
|
|
||||||
-
|
|
||||||
- get_focus_row_coordinates (fl, x, y, w, h);
|
|
||||||
+ // create the popup menu
|
|
||||||
+ GtkWidget *menu = gnome_cmd_file_popmenu_new (fl);
|
|
||||||
+ if (!menu) return;
|
|
||||||
|
|
||||||
- //FIXME: Warp the pointer to x, y here
|
|
||||||
+ g_object_ref (menu);
|
|
||||||
+ g_object_set_data_full (*fl, "file_popup_menu", menu, g_object_unref);
|
|
||||||
|
|
||||||
- show_file_popup (fl, nullptr);
|
|
||||||
+ if (event)
|
|
||||||
+ {
|
|
||||||
+ gtk_menu_popup (GTK_MENU (menu),
|
|
||||||
+ nullptr,
|
|
||||||
+ nullptr,
|
|
||||||
+ nullptr,
|
|
||||||
+ fl,
|
|
||||||
+ event->button,
|
|
||||||
+ event->time);
|
|
||||||
+ }
|
|
||||||
+ else
|
|
||||||
+ {
|
|
||||||
+ gtk_menu_popup (GTK_MENU (menu),
|
|
||||||
+ nullptr,
|
|
||||||
+ nullptr,
|
|
||||||
+ (GtkMenuPositionFunc) get_popup_pos,
|
|
||||||
+ fl,
|
|
||||||
+ 0,
|
|
||||||
+ gtk_get_current_event_time ());
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -2480,7 +2497,7 @@ gboolean GnomeCmdFileList::key_pressed(GdkEventKey *event)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
case GDK_F10:
|
|
||||||
- show_file_popup_with_warp (this);
|
|
||||||
+ show_file_popup (this, nullptr);
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
case GDK_Left:
|
|
||||||
@@ -2662,7 +2679,7 @@ gboolean GnomeCmdFileList::key_pressed(GdkEventKey *event)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
case GDK_Menu:
|
|
||||||
- show_file_popup_with_warp (this);
|
|
||||||
+ show_file_popup (this, nullptr);
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
default:
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
--- gnome-commander-1.10.3/src/tags/gnome-cmd-tags-exiv2.cc.debug 2020-04-15 22:16:27.000000000 +0900
|
|
||||||
+++ gnome-commander-1.10.3/src/tags/gnome-cmd-tags-exiv2.cc 2021-02-23 22:09:11.236969469 +0900
|
|
||||||
@@ -74,7 +74,7 @@
|
|
||||||
case TAG_EXIF_FLASHPIXVERSION:
|
|
||||||
case TAG_EXIF_INTEROPERABILITYVERSION:
|
|
||||||
{
|
|
||||||
- vector<byte> buff(i->value().size()+1);
|
|
||||||
+ vector<Exiv2::byte> buff(i->value().size()+1);
|
|
||||||
|
|
||||||
i->value().copy(&buff[0],invalidByteOrder);
|
|
||||||
metadata->add(tag,(char *) &buff[0]);
|
|
@ -1 +1 @@
|
|||||||
SHA512 (gnome-commander-1.10.3.tar.xz) = 87c4df1534747f21b15e48141180601aef02152b1eef097986b0f8675a6d24e75a81ccb7d0b41b2df38cd40eadae2b0bd09f8e0274a5e5cd8bbd8d23df6ffd7f
|
SHA512 (gnome-commander-20210319T1025.tar.gz) = df76d983f9a94c88cf415113df967c688c7faa8ee4377aab32ac702c27531ba54893ded19055ccdce13f5c3aab067bda9b771e3dcc2911d9981a2427095d0b36
|
||||||
|
Loading…
Reference in new issue