[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/gtkshell dragdrop.c gtkshell.h
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/gtkshell dragdrop.c gtkshell.h |
Date: |
Sun, 25 Feb 2007 09:35:02 +0000 |
CVSROOT: /sources/antiright
Module name: antiright
Changes by: Jeffrey Bedard <jefbed> 07/02/25 09:35:02
Modified files:
gtkshell : dragdrop.c gtkshell.h
Log message:
Implemented commandline specification of button commands by drag and
drop.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/gtkshell/dragdrop.c?cvsroot=antiright&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/antiright/gtkshell/gtkshell.h?cvsroot=antiright&r1=1.18&r2=1.19
Patches:
Index: dragdrop.c
===================================================================
RCS file: /sources/antiright/antiright/gtkshell/dragdrop.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- dragdrop.c 24 Feb 2007 08:49:27 -0000 1.1
+++ dragdrop.c 25 Feb 2007 09:35:02 -0000 1.2
@@ -1,24 +1,22 @@
/*
- AntiRight
- (c) 2002-2006 Jeffrey Bedard
- address@hidden
+ AntiRight (c) 2002-2007 Jeffrey Bedard address@hidden
This file is part of AntiRight.
- AntiRight is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- AntiRight is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with AntiRight; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
-*/
+ AntiRight is free software; you can redistribute it and/or modify it
under
+ the terms of the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your
option)
+ any later version.
+
+ AntiRight is distributed in the hope that it will be useful, but
WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ details.
+
+ You should have received a copy of the GNU General Public License
along with
+ AntiRight; if not, write to the Free Software Foundation, Inc., 51
Franklin
+ Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
#include "gtkshell.h"
@@ -71,7 +69,6 @@
(void) g_signal_connect (widget, "drag-drop", G_CALLBACK(drag_drop),
NULL);
(void) g_signal_connect (widget, "drag-data-get",
G_CALLBACK(drag_data_get), NULL);
-
}
static void
@@ -84,7 +81,8 @@
switch (target_type)
{
case TARGET_STRING:
- g_print("%s", (gchar *) selection->data);
+ sysprintf("%s %s", gtk_button_get_label(widget),
+ (gchar *)
selection->data);
drag_status=TRUE;
break;
default:
@@ -139,5 +137,3 @@
{
}
-
-
Index: gtkshell.h
===================================================================
RCS file: /sources/antiright/antiright/gtkshell/gtkshell.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- gtkshell.h 24 Feb 2007 08:49:27 -0000 1.18
+++ gtkshell.h 25 Feb 2007 09:35:02 -0000 1.19
@@ -52,6 +52,7 @@
unsigned int period;
GSList *list;
};
+
struct GSH
{
GtkWidget *window;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Antiright-devel] antiright/gtkshell dragdrop.c gtkshell.h,
Jeffrey Bedard <=