- make Copy and Copy+ menu items also copy to CLIPBOARD instead of only PRIMARY

to allow paste via Ctrl-v


git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@624 d2ac09be-c843-0410-8b1f-f8a84130e0ec
This commit is contained in:
Ludwig Nussel 2004-06-28 19:30:21 +00:00 committed by l-n
parent ac156b76f0
commit e467b14cd1
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Jun 28, 2004: Ludwig Nussel <l-n@users.sourceforge.net>
- make Copy and Copy+ menu items also copy to CLIPBOARD instead of only PRIMARY
to allow paste via Ctrl-v
Jun 19, 2004: Ludwig Nussel <l-n@users.sourceforge.net>
- use separate types for ET and RTCW so update from master doesn't throw away
all servers. Today's qstat cvs version required.

View File

@ -1790,7 +1790,7 @@ static void copy_server_callback (GtkWidget *widget, gpointer data) {
case 0:
gtk_editable_select_region (selection_manager, 0, 0);
return;
break;
case 1:
s = (struct server *) gtk_clist_get_row_data (
@ -1798,7 +1798,7 @@ static void copy_server_callback (GtkWidget *widget, gpointer data) {
g_snprintf (buf, 256, "%s:%d", inet_ntoa (s->host->ip), s->port);
gtk_editable_insert_text (selection_manager, buf, strlen (buf), &pos);
gtk_editable_select_region (selection_manager, 0, -1);
return;
break;
default:
for (; selection; selection = selection->next) {
@ -1811,6 +1811,7 @@ static void copy_server_callback (GtkWidget *widget, gpointer data) {
break;
}
gtk_editable_copy_clipboard(selection_manager);
}
static void copy_server_callback_plus (GtkWidget *widget, gpointer data) {
@ -1825,7 +1826,7 @@ static void copy_server_callback_plus (GtkWidget *widget, gpointer data) {
case 0:
gtk_editable_select_region (selection_manager, 0, 0);
return;
break;
case 1:
s = (struct server *) gtk_clist_get_row_data (
@ -1834,7 +1835,7 @@ static void copy_server_callback_plus (GtkWidget *widget, gpointer data) {
(s->host->ip), s->port, s->name, s->map, s->curplayers, s->maxplayers);
gtk_editable_insert_text (selection_manager, buf, strlen (buf), &pos);
gtk_editable_select_region (selection_manager, 0, -1);
return;
break;
default:
for (; selection; selection = selection->next) {
@ -1848,6 +1849,8 @@ static void copy_server_callback_plus (GtkWidget *widget, gpointer data) {
break;
}
gtk_editable_copy_clipboard(selection_manager);
}
static void update_master_builtin_callback (GtkWidget *widget, gpointer data) {