mirror of
https://github.com/gryf/gentoo-patches.git
synced 2026-04-25 06:01:25 +02:00
Compare commits
9 Commits
2990ddda23
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9090faca5c | |||
| 00b49d01ea | |||
| aa457df477 | |||
| ef6ebef163 | |||
| 79086cc920 | |||
| e052b6d302 | |||
| 84260e6b0d | |||
| 282e1e8a04 | |||
| 677efa8e7d |
@@ -1,20 +0,0 @@
|
|||||||
--- mc-4.8.28_orig/src/filemanager/filemanager.c 2022-03-20 11:02:47.000000000 +0100
|
|
||||||
+++ mc-4.8.28/src/filemanager/filemanager.c 2022-07-23 18:14:31.270726018 +0200
|
|
||||||
@@ -199,7 +199,7 @@
|
|
||||||
entries =
|
|
||||||
g_list_prepend (entries,
|
|
||||||
menu_entry_create (_("&Listing format..."), CK_SetupListingFormat));
|
|
||||||
- entries = g_list_prepend (entries, menu_entry_create (_("S&ort order..."), CK_Sort));
|
|
||||||
+ entries = g_list_prepend (entries, menu_entry_create (_("&Sort order..."), CK_Sort));
|
|
||||||
entries = g_list_prepend (entries, menu_entry_create (_("&Filter..."), CK_Filter));
|
|
||||||
#ifdef HAVE_CHARSET
|
|
||||||
entries = g_list_prepend (entries, menu_entry_create (_("&Encoding..."), CK_SelectCodepage));
|
|
||||||
@@ -212,7 +212,7 @@
|
|
||||||
entries = g_list_prepend (entries, menu_entry_create (_("S&hell link..."), CK_ConnectFish));
|
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_VFS_SFTP
|
|
||||||
- entries = g_list_prepend (entries, menu_entry_create (_("&SFTP link..."), CK_ConnectSftp));
|
|
||||||
+ entries = g_list_prepend (entries, menu_entry_create (_("S&FTP link..."), CK_ConnectSftp));
|
|
||||||
#endif
|
|
||||||
entries = g_list_prepend (entries, menu_entry_create (_("Paneli&ze"), CK_Panelize));
|
|
||||||
entries = g_list_prepend (entries, menu_separator_create ());
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
|||||||
|
diff '--color=auto' -ur pilot-link-0.12.5_orig/src/pilot-read-todos.c pilot-link-0.12.5/src/pilot-read-todos.c
|
||||||
|
--- pilot-link-0.12.5_orig/src/pilot-read-todos.c 2009-06-04 15:32:32.000000000 +0200
|
||||||
|
+++ pilot-link-0.12.5/src/pilot-read-todos.c 2025-02-18 15:04:20.120418647 +0100
|
||||||
|
@@ -202,8 +202,8 @@
|
||||||
|
|
||||||
|
for (i = 0;; i++) {
|
||||||
|
int attr,
|
||||||
|
- category,
|
||||||
|
- len;
|
||||||
|
+ category;
|
||||||
|
+ long unsigned int len;
|
||||||
|
|
||||||
|
struct ToDo todo;
|
||||||
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
--- id3lib-3.8.3_orig/include/id3/globals.h 2026-04-01 11:04:30.002608338 +0200
|
||||||
|
+++ id3lib-3.8.3/include/id3/globals.h 2026-04-01 11:06:12.388848196 +0200
|
||||||
|
@@ -82,14 +82,6 @@
|
||||||
|
|
||||||
|
#define ID3_C_VAR extern
|
||||||
|
|
||||||
|
-#ifndef __cplusplus
|
||||||
|
-
|
||||||
|
-typedef int bool;
|
||||||
|
-# define false (0)
|
||||||
|
-# define true (!false)
|
||||||
|
-
|
||||||
|
-#endif /* __cplusplus */
|
||||||
|
-
|
||||||
|
ID3_C_VAR const char * const ID3LIB_NAME;
|
||||||
|
ID3_C_VAR const char * const ID3LIB_RELEASE;
|
||||||
|
ID3_C_VAR const char * const ID3LIB_FULL_NAME;
|
||||||
@@ -0,0 +1,160 @@
|
|||||||
|
diff --git a/src/common/hmap.c b/src/common/hmap.c
|
||||||
|
index 9c5d657..90ca558 100644
|
||||||
|
--- a/src/common/hmap.c
|
||||||
|
+++ b/src/common/hmap.c
|
||||||
|
@@ -363,7 +363,7 @@ hmap_iterator(HMap *map, HMapIterator *it)
|
||||||
|
* function. But no other entry.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
-hmap_foreach_value(HMap *map, void (*iterator)())
|
||||||
|
+hmap_foreach_value(HMap *map, void (*iterator)(void*))
|
||||||
|
{
|
||||||
|
uint32_t c;
|
||||||
|
|
||||||
|
@@ -378,7 +378,7 @@ hmap_foreach_value(HMap *map, void (*iterator)())
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
-hmap_foreach_key(HMap *map, void (*iterator)())
|
||||||
|
+hmap_foreach_key(HMap *map, void (*iterator)(void*))
|
||||||
|
{
|
||||||
|
uint32_t c;
|
||||||
|
|
||||||
|
diff --git a/src/common/hmap.h b/src/common/hmap.h
|
||||||
|
index bf6684b..0ca0b56 100644
|
||||||
|
--- a/src/common/hmap.h
|
||||||
|
+++ b/src/common/hmap.h
|
||||||
|
@@ -50,8 +50,8 @@ void *hmap_put(HMap *map, void *key, void *value);
|
||||||
|
bool hmap_contains_key(HMap *map, const void *key);
|
||||||
|
void *hmap_remove(HMap *map, const void *key);
|
||||||
|
void hmap_iterator(HMap *map, HMapIterator *it);
|
||||||
|
-void hmap_foreach_key(HMap *map, void (*iterator)());
|
||||||
|
-void hmap_foreach_value(HMap *map, void (*iterator)());
|
||||||
|
+void hmap_foreach_key(HMap *map, void (*iterator)(void*));
|
||||||
|
+void hmap_foreach_value(HMap *map, void (*iterator)(void*));
|
||||||
|
void hmap_clear(HMap *map);
|
||||||
|
size_t hmap_size(HMap *map);
|
||||||
|
void hmap_set_hash_fn(HMap *map, hash_fn_t hash);
|
||||||
|
diff --git a/src/common/llist.c b/src/common/llist.c
|
||||||
|
index 01a74de..aed1eda 100644
|
||||||
|
--- a/src/common/llist.c
|
||||||
|
+++ b/src/common/llist.c
|
||||||
|
@@ -445,7 +445,7 @@ llist_is_empty(LList *list)
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
-llist_iterate(LList *list, void (*iterator_func)())
|
||||||
|
+llist_iterate(LList *list, void (*iterator_func)(void*))
|
||||||
|
{
|
||||||
|
LNode *entry;
|
||||||
|
for (entry = list->first; entry != NULL; entry = entry->next)
|
||||||
|
diff --git a/src/common/llist.h b/src/common/llist.h
|
||||||
|
index 11d13a3..c22cce9 100644
|
||||||
|
--- a/src/common/llist.h
|
||||||
|
+++ b/src/common/llist.h
|
||||||
|
@@ -68,7 +68,7 @@ LList *llist_clone(LList *list);
|
||||||
|
void **llist_to_array(LList *list);
|
||||||
|
void **llist_to_null_terminated_array(LList *list);
|
||||||
|
|
||||||
|
-void llist_iterate(LList *list, void (*iterator_func)());
|
||||||
|
+void llist_iterate(LList *list, void (*iterator_func)(void*));
|
||||||
|
void llist_iterator(LList *list, LListIterator *it);
|
||||||
|
|
||||||
|
void llist_reverse(LList *list);
|
||||||
|
diff --git a/src/common/tmap.c b/src/common/tmap.c
|
||||||
|
index afa2203..d1b1c09 100644
|
||||||
|
--- a/src/common/tmap.c
|
||||||
|
+++ b/src/common/tmap.c
|
||||||
|
@@ -507,7 +507,7 @@ predecessor(TMapNode *node)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static void
|
||||||
|
-tmap_foreach_nodes_key(TMapNode *node, void (*iterator)())
|
||||||
|
+tmap_foreach_nodes_key(TMapNode *node, void (*iterator)(void*))
|
||||||
|
{
|
||||||
|
if (node->left != &nil)
|
||||||
|
tmap_foreach_nodes_key(node->left, iterator);
|
||||||
|
@@ -517,7 +517,7 @@ tmap_foreach_nodes_key(TMapNode *node, void (*iterator)())
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
-tmap_foreach_nodes_value(TMapNode *node, void (*iterator)())
|
||||||
|
+tmap_foreach_nodes_value(TMapNode *node, void (*iterator)(void*))
|
||||||
|
{
|
||||||
|
if (node->left != &nil)
|
||||||
|
tmap_foreach_nodes_value(node->left, iterator);
|
||||||
|
@@ -527,14 +527,14 @@ tmap_foreach_nodes_value(TMapNode *node, void (*iterator)())
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
-tmap_foreach_key(TMap *map, void (*iterator)())
|
||||||
|
+tmap_foreach_key(TMap *map, void (*iterator)(void*))
|
||||||
|
{
|
||||||
|
if (map->root != &nil)
|
||||||
|
tmap_foreach_nodes_key(map->root, iterator);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
-tmap_foreach_value(TMap *map, void (*iterator)())
|
||||||
|
+tmap_foreach_value(TMap *map, void (*iterator)(void*))
|
||||||
|
{
|
||||||
|
if (map->root != &nil)
|
||||||
|
tmap_foreach_nodes_value(map->root, iterator);
|
||||||
|
diff --git a/src/common/tmap.h b/src/common/tmap.h
|
||||||
|
index b1368f8..7e073e7 100644
|
||||||
|
--- a/src/common/tmap.h
|
||||||
|
+++ b/src/common/tmap.h
|
||||||
|
@@ -51,8 +51,8 @@ void *tmap_remove(TMap *map, const void *key);
|
||||||
|
void tmap_iterator(TMap *map, TMapIterator *it); /* value iterator */
|
||||||
|
bool tmap_iterator_partial(TMap *map, TMapIterator *it, const void *match, comparison_fn_t comparator);
|
||||||
|
void tmap_clear(TMap *map);
|
||||||
|
-void tmap_foreach_key(TMap *map, void (*iterator)());
|
||||||
|
-void tmap_foreach_value(TMap *map, void (*iterator)());
|
||||||
|
+void tmap_foreach_key(TMap *map, void (*iterator)(void*));
|
||||||
|
+void tmap_foreach_value(TMap *map, void (*iterator)(void*));
|
||||||
|
|
||||||
|
#ifdef ENABLE_TMAP_TESTING
|
||||||
|
#include <stdio.h>
|
||||||
|
diff --git a/src/list.c b/src/list.c
|
||||||
|
index d5bac13..0012376 100644
|
||||||
|
--- a/src/list.c
|
||||||
|
+++ b/src/list.c
|
||||||
|
@@ -166,14 +166,14 @@ import_command(char **args)
|
||||||
|
hmap_free(map_files);
|
||||||
|
if (ferror(fh)) {
|
||||||
|
warn(_("%s: cannot read from file: %s\n"), quotearg(args[1]), errstr);
|
||||||
|
- llist_iterate(new_files, free_file_spec);
|
||||||
|
+ llist_iterate(new_files, (void(*)(void *))free_file_spec);
|
||||||
|
llist_free(new_files);
|
||||||
|
fclose(fh);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
fclose(fh);
|
||||||
|
|
||||||
|
- llist_iterate(work_files, free_file_spec);
|
||||||
|
+ llist_iterate(work_files, (void(*)(void *))free_file_spec);
|
||||||
|
llist_free(work_files);
|
||||||
|
work_files = new_files;
|
||||||
|
}
|
||||||
|
@@ -370,7 +370,7 @@ list_files(char **args)
|
||||||
|
free_plan(plan);
|
||||||
|
plan = NULL;
|
||||||
|
}
|
||||||
|
- llist_iterate(work_files, free_file_spec);
|
||||||
|
+ llist_iterate(work_files, (void(*)(void *))free_file_spec);
|
||||||
|
llist_clear(work_files);
|
||||||
|
|
||||||
|
if (!process_ls_output(firstdir, work_files, ls_fd)) {
|
||||||
|
diff --git a/src/qcmd.c b/src/qcmd.c
|
||||||
|
index 285fe8e..6bb3013 100644
|
||||||
|
--- a/src/qcmd.c
|
||||||
|
+++ b/src/qcmd.c
|
||||||
|
@@ -263,7 +263,7 @@ main(int argc, char **argv)
|
||||||
|
free_plan(plan);
|
||||||
|
|
||||||
|
/*dump_spec_list(work_files);*/
|
||||||
|
- llist_iterate(work_files, free_file_spec);
|
||||||
|
+ llist_iterate(work_files, (void(*)(void *))free_file_spec);
|
||||||
|
llist_free(work_files);
|
||||||
|
free(all_options);
|
||||||
|
free(editor_program);
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
diff -ur gtk+-3.24.1/gtk/gtkentry.c gtk+-3.24.1_patched/gtk/gtkentry.c
|
diff '--color=auto' -ur gtk-3.24.48-orig/gtk/gtkentry.c gtk-3.24.48/gtk/gtkentry.c
|
||||||
--- gtk+-3.24.1/gtk/gtkentry.c 2018-06-03 15:43:28.000000000 +0200
|
--- gtk-3.24.48-orig/gtk/gtkentry.c 2025-01-25 14:25:12.000000000 +0100
|
||||||
+++ gtk+-3.24.1_patched/gtk/gtkentry.c 2019-03-24 12:26:55.484614867 +0100
|
+++ gtk-3.24.48/gtk/gtkentry.c 2025-03-24 10:55:25.453442872 +0100
|
||||||
@@ -323,6 +323,7 @@
|
@@ -323,6 +323,7 @@
|
||||||
CUT_CLIPBOARD,
|
CUT_CLIPBOARD,
|
||||||
COPY_CLIPBOARD,
|
COPY_CLIPBOARD,
|
||||||
@@ -9,14 +9,14 @@ diff -ur gtk+-3.24.1/gtk/gtkentry.c gtk+-3.24.1_patched/gtk/gtkentry.c
|
|||||||
TOGGLE_OVERWRITE,
|
TOGGLE_OVERWRITE,
|
||||||
ICON_PRESS,
|
ICON_PRESS,
|
||||||
ICON_RELEASE,
|
ICON_RELEASE,
|
||||||
@@ -552,6 +553,7 @@
|
@@ -553,6 +554,7 @@
|
||||||
static void gtk_entry_cut_clipboard (GtkEntry *entry);
|
static void gtk_entry_cut_clipboard (GtkEntry *entry);
|
||||||
static void gtk_entry_copy_clipboard (GtkEntry *entry);
|
static void gtk_entry_copy_clipboard (GtkEntry *entry);
|
||||||
static void gtk_entry_paste_clipboard (GtkEntry *entry);
|
static void gtk_entry_paste_clipboard (GtkEntry *entry);
|
||||||
+static void gtk_entry_paste_selection (GtkEntry *entry);
|
+static void gtk_entry_paste_selection (GtkEntry *entry);
|
||||||
static void gtk_entry_toggle_overwrite (GtkEntry *entry);
|
static void gtk_entry_toggle_overwrite (GtkEntry *entry);
|
||||||
|
static void gtk_entry_toggle_direction (GtkEntry *entry);
|
||||||
static void gtk_entry_insert_emoji (GtkEntry *entry);
|
static void gtk_entry_insert_emoji (GtkEntry *entry);
|
||||||
static void gtk_entry_select_all (GtkEntry *entry);
|
|
||||||
@@ -816,6 +818,7 @@
|
@@ -816,6 +818,7 @@
|
||||||
class->cut_clipboard = gtk_entry_cut_clipboard;
|
class->cut_clipboard = gtk_entry_cut_clipboard;
|
||||||
class->copy_clipboard = gtk_entry_copy_clipboard;
|
class->copy_clipboard = gtk_entry_copy_clipboard;
|
||||||
@@ -25,7 +25,7 @@ diff -ur gtk+-3.24.1/gtk/gtkentry.c gtk+-3.24.1_patched/gtk/gtkentry.c
|
|||||||
class->toggle_overwrite = gtk_entry_toggle_overwrite;
|
class->toggle_overwrite = gtk_entry_toggle_overwrite;
|
||||||
class->insert_emoji = gtk_entry_insert_emoji;
|
class->insert_emoji = gtk_entry_insert_emoji;
|
||||||
class->activate = gtk_entry_real_activate;
|
class->activate = gtk_entry_real_activate;
|
||||||
@@ -1828,6 +1831,15 @@
|
@@ -1829,6 +1832,15 @@
|
||||||
NULL,
|
NULL,
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ diff -ur gtk+-3.24.1/gtk/gtkentry.c gtk+-3.24.1_patched/gtk/gtkentry.c
|
|||||||
/**
|
/**
|
||||||
* GtkEntry::toggle-overwrite:
|
* GtkEntry::toggle-overwrite:
|
||||||
* @entry: the object which received the signal
|
* @entry: the object which received the signal
|
||||||
@@ -2086,14 +2098,14 @@
|
@@ -2096,14 +2108,14 @@
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_CONTROL_MASK,
|
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_CONTROL_MASK,
|
||||||
"copy-clipboard", 0);
|
"copy-clipboard", 0);
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_SHIFT_MASK,
|
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_SHIFT_MASK,
|
||||||
@@ -58,20 +58,10 @@ diff -ur gtk+-3.24.1/gtk/gtkentry.c gtk+-3.24.1_patched/gtk/gtkentry.c
|
|||||||
|
|
||||||
/* Overwrite */
|
/* Overwrite */
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, 0,
|
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, 0,
|
||||||
@@ -5986,6 +5998,27 @@
|
@@ -6000,6 +6012,27 @@
|
||||||
}
|
else
|
||||||
}
|
gtk_widget_error_bell (GTK_WIDGET (entry));
|
||||||
|
|
||||||
+static void
|
|
||||||
+gtk_entry_paste_selection (GtkEntry *entry)
|
|
||||||
+{
|
|
||||||
+ GtkEntryPrivate *priv = entry->priv;
|
|
||||||
+
|
|
||||||
+ if (priv->editable)
|
|
||||||
+ gtk_entry_paste (entry, GDK_SELECTION_PRIMARY);
|
|
||||||
+ else
|
|
||||||
+ gtk_widget_error_bell (GTK_WIDGET (entry));
|
|
||||||
+
|
|
||||||
+ if (priv->text_handle)
|
+ if (priv->text_handle)
|
||||||
+ {
|
+ {
|
||||||
+ GtkTextHandleMode handle_mode;
|
+ GtkTextHandleMode handle_mode;
|
||||||
@@ -83,12 +73,22 @@ diff -ur gtk+-3.24.1/gtk/gtkentry.c gtk+-3.24.1_patched/gtk/gtkentry.c
|
|||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
static void
|
+static void
|
||||||
gtk_entry_delete_cb (GtkEntry *entry)
|
+gtk_entry_paste_selection (GtkEntry *entry)
|
||||||
|
+{
|
||||||
|
+ GtkEntryPrivate *priv = entry->priv;
|
||||||
|
+
|
||||||
|
+ if (priv->editable)
|
||||||
|
+ gtk_entry_paste (entry, GDK_SELECTION_PRIMARY);
|
||||||
|
+ else
|
||||||
|
+ gtk_widget_error_bell (GTK_WIDGET (entry));
|
||||||
|
+
|
||||||
|
if (priv->text_handle)
|
||||||
{
|
{
|
||||||
diff -ur gtk+-3.24.1/gtk/gtkentry.h gtk+-3.24.1_patched/gtk/gtkentry.h
|
GtkTextHandleMode handle_mode;
|
||||||
--- gtk+-3.24.1/gtk/gtkentry.h 2017-11-27 00:24:51.000000000 +0100
|
diff '--color=auto' -ur gtk-3.24.48-orig/gtk/gtkentry.h gtk-3.24.48/gtk/gtkentry.h
|
||||||
+++ gtk+-3.24.1_patched/gtk/gtkentry.h 2019-03-24 11:55:03.848566726 +0100
|
--- gtk-3.24.48-orig/gtk/gtkentry.h 2025-01-25 14:25:12.000000000 +0100
|
||||||
|
+++ gtk-3.24.48/gtk/gtkentry.h 2025-03-24 10:29:15.753717742 +0100
|
||||||
@@ -145,6 +145,7 @@
|
@@ -145,6 +145,7 @@
|
||||||
void (* cut_clipboard) (GtkEntry *entry);
|
void (* cut_clipboard) (GtkEntry *entry);
|
||||||
void (* copy_clipboard) (GtkEntry *entry);
|
void (* copy_clipboard) (GtkEntry *entry);
|
||||||
@@ -97,18 +97,18 @@ diff -ur gtk+-3.24.1/gtk/gtkentry.h gtk+-3.24.1_patched/gtk/gtkentry.h
|
|||||||
void (* toggle_overwrite) (GtkEntry *entry);
|
void (* toggle_overwrite) (GtkEntry *entry);
|
||||||
|
|
||||||
/* hooks to add other objects beside the entry (like in GtkSpinButton) */
|
/* hooks to add other objects beside the entry (like in GtkSpinButton) */
|
||||||
@@ -168,7 +169,6 @@
|
@@ -169,7 +170,6 @@
|
||||||
|
void (*_gtk_reserved2) (void);
|
||||||
void (*_gtk_reserved3) (void);
|
void (*_gtk_reserved3) (void);
|
||||||
void (*_gtk_reserved4) (void);
|
void (*_gtk_reserved4) (void);
|
||||||
void (*_gtk_reserved5) (void);
|
- void (*_gtk_reserved5) (void);
|
||||||
- void (*_gtk_reserved6) (void);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
diff -ur gtk+-3.24.1/gtk/gtktextview.c gtk+-3.24.1_patched/gtk/gtktextview.c
|
diff '--color=auto' -ur gtk-3.24.48-orig/gtk/gtktextview.c gtk-3.24.48/gtk/gtktextview.c
|
||||||
--- gtk+-3.24.1/gtk/gtktextview.c 2018-07-25 14:29:25.000000000 +0200
|
--- gtk-3.24.48-orig/gtk/gtktextview.c 2025-01-25 14:25:12.000000000 +0100
|
||||||
+++ gtk+-3.24.1_patched/gtk/gtktextview.c 2019-03-24 11:46:29.476553772 +0100
|
+++ gtk-3.24.48/gtk/gtktextview.c 2025-03-24 10:38:47.534703867 +0100
|
||||||
@@ -327,6 +327,7 @@
|
@@ -329,6 +329,7 @@
|
||||||
CUT_CLIPBOARD,
|
CUT_CLIPBOARD,
|
||||||
COPY_CLIPBOARD,
|
COPY_CLIPBOARD,
|
||||||
PASTE_CLIPBOARD,
|
PASTE_CLIPBOARD,
|
||||||
@@ -116,7 +116,7 @@ diff -ur gtk+-3.24.1/gtk/gtktextview.c gtk+-3.24.1_patched/gtk/gtktextview.c
|
|||||||
TOGGLE_OVERWRITE,
|
TOGGLE_OVERWRITE,
|
||||||
MOVE_VIEWPORT,
|
MOVE_VIEWPORT,
|
||||||
SELECT_ALL,
|
SELECT_ALL,
|
||||||
@@ -497,6 +498,7 @@
|
@@ -499,6 +500,7 @@
|
||||||
static void gtk_text_view_cut_clipboard (GtkTextView *text_view);
|
static void gtk_text_view_cut_clipboard (GtkTextView *text_view);
|
||||||
static void gtk_text_view_copy_clipboard (GtkTextView *text_view);
|
static void gtk_text_view_copy_clipboard (GtkTextView *text_view);
|
||||||
static void gtk_text_view_paste_clipboard (GtkTextView *text_view);
|
static void gtk_text_view_paste_clipboard (GtkTextView *text_view);
|
||||||
@@ -124,7 +124,7 @@ diff -ur gtk+-3.24.1/gtk/gtktextview.c gtk+-3.24.1_patched/gtk/gtktextview.c
|
|||||||
static void gtk_text_view_toggle_overwrite (GtkTextView *text_view);
|
static void gtk_text_view_toggle_overwrite (GtkTextView *text_view);
|
||||||
static void gtk_text_view_toggle_cursor_visible (GtkTextView *text_view);
|
static void gtk_text_view_toggle_cursor_visible (GtkTextView *text_view);
|
||||||
|
|
||||||
@@ -785,6 +787,7 @@
|
@@ -787,6 +789,7 @@
|
||||||
klass->cut_clipboard = gtk_text_view_cut_clipboard;
|
klass->cut_clipboard = gtk_text_view_cut_clipboard;
|
||||||
klass->copy_clipboard = gtk_text_view_copy_clipboard;
|
klass->copy_clipboard = gtk_text_view_copy_clipboard;
|
||||||
klass->paste_clipboard = gtk_text_view_paste_clipboard;
|
klass->paste_clipboard = gtk_text_view_paste_clipboard;
|
||||||
@@ -132,7 +132,7 @@ diff -ur gtk+-3.24.1/gtk/gtktextview.c gtk+-3.24.1_patched/gtk/gtktextview.c
|
|||||||
klass->toggle_overwrite = gtk_text_view_toggle_overwrite;
|
klass->toggle_overwrite = gtk_text_view_toggle_overwrite;
|
||||||
klass->create_buffer = gtk_text_view_create_buffer;
|
klass->create_buffer = gtk_text_view_create_buffer;
|
||||||
klass->extend_selection = gtk_text_view_extend_selection;
|
klass->extend_selection = gtk_text_view_extend_selection;
|
||||||
@@ -1305,6 +1308,15 @@
|
@@ -1316,6 +1319,15 @@
|
||||||
NULL,
|
NULL,
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
@@ -148,7 +148,7 @@ diff -ur gtk+-3.24.1/gtk/gtktextview.c gtk+-3.24.1_patched/gtk/gtktextview.c
|
|||||||
/**
|
/**
|
||||||
* GtkTextView::toggle-overwrite:
|
* GtkTextView::toggle-overwrite:
|
||||||
* @text_view: the object which received the signal
|
* @text_view: the object which received the signal
|
||||||
@@ -1652,14 +1664,14 @@
|
@@ -1666,14 +1678,14 @@
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Insert, GDK_CONTROL_MASK,
|
gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Insert, GDK_CONTROL_MASK,
|
||||||
"copy-clipboard", 0);
|
"copy-clipboard", 0);
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Insert, GDK_SHIFT_MASK,
|
gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Insert, GDK_SHIFT_MASK,
|
||||||
@@ -165,29 +165,30 @@ diff -ur gtk+-3.24.1/gtk/gtktextview.c gtk+-3.24.1_patched/gtk/gtktextview.c
|
|||||||
|
|
||||||
/* Overwrite */
|
/* Overwrite */
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, 0,
|
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, 0,
|
||||||
@@ -7221,6 +7233,19 @@
|
@@ -7247,6 +7259,20 @@
|
||||||
}
|
text_view->priv->scroll_after_paste = TRUE;
|
||||||
|
|
||||||
static void
|
gtk_text_buffer_paste_clipboard (get_buffer (text_view),
|
||||||
+gtk_text_view_paste_selection (GtkTextView *text_view)
|
|
||||||
+{
|
|
||||||
+ GtkClipboard *clipboard = gtk_widget_get_clipboard (GTK_WIDGET (text_view),
|
|
||||||
+ GDK_SELECTION_PRIMARY);
|
|
||||||
+
|
|
||||||
+ text_view->priv->scroll_after_paste = TRUE;
|
|
||||||
+ gtk_text_buffer_paste_clipboard (get_buffer (text_view),
|
|
||||||
+ clipboard,
|
+ clipboard,
|
||||||
+ NULL,
|
+ NULL,
|
||||||
+ text_view->priv->editable);
|
+ text_view->priv->editable);
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static void
|
+static void
|
||||||
gtk_text_view_paste_done_handler (GtkTextBuffer *buffer,
|
+gtk_text_view_paste_selection (GtkTextView *text_view)
|
||||||
GtkClipboard *clipboard,
|
+{
|
||||||
gpointer data)
|
+ GtkClipboard *clipboard = gtk_widget_get_clipboard (GTK_WIDGET (text_view),
|
||||||
diff -ur gtk+-3.24.1/gtk/gtktextview.h gtk+-3.24.1_patched/gtk/gtktextview.h
|
+ GDK_SELECTION_PRIMARY);
|
||||||
--- gtk+-3.24.1/gtk/gtktextview.h 2017-11-26 22:31:46.000000000 +0100
|
+
|
||||||
+++ gtk+-3.24.1_patched/gtk/gtktextview.h 2019-03-24 11:57:41.592570698 +0100
|
+ text_view->priv->scroll_after_paste = TRUE;
|
||||||
|
+
|
||||||
|
+ gtk_text_buffer_paste_clipboard (get_buffer (text_view),
|
||||||
|
clipboard,
|
||||||
|
NULL,
|
||||||
|
text_view->priv->editable);
|
||||||
|
diff '--color=auto' -ur gtk-3.24.48-orig/gtk/gtktextview.h gtk-3.24.48/gtk/gtktextview.h
|
||||||
|
--- gtk-3.24.48-orig/gtk/gtktextview.h 2025-01-25 14:25:12.000000000 +0100
|
||||||
|
+++ gtk-3.24.48/gtk/gtktextview.h 2025-03-24 10:32:51.750647605 +0100
|
||||||
@@ -181,6 +181,7 @@
|
@@ -181,6 +181,7 @@
|
||||||
void (* cut_clipboard) (GtkTextView *text_view);
|
void (* cut_clipboard) (GtkTextView *text_view);
|
||||||
void (* copy_clipboard) (GtkTextView *text_view);
|
void (* copy_clipboard) (GtkTextView *text_view);
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/lua-api-crates/mux/src/pane.rs b/lua-api-crates/mux/src/pane.rs
|
||||||
|
index f0d919e16..0a16b03d3 100644
|
||||||
|
--- a/lua-api-crates/mux/src/pane.rs
|
||||||
|
+++ b/lua-api-crates/mux/src/pane.rs
|
||||||
|
@@ -409,6 +409,12 @@ impl UserData for MuxPane {
|
||||||
|
let pane = this.resolve(&mux)?;
|
||||||
|
Ok(pane.tty_name())
|
||||||
|
});
|
||||||
|
+
|
||||||
|
+ methods.add_method("get_seqno", move |_lua, this, ()| {
|
||||||
|
+ let mux = Mux::get();
|
||||||
|
+ let pane = this.resolve(&mux)?;
|
||||||
|
+ Ok(pane.get_current_seqno())
|
||||||
|
+ });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user