Commit 11c14828 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa
Browse files

Use button-1 to select an option on the popup menu.

1998-09-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/item-cursor.c (item_cursor_do_drop): Use button-1 to select
	an option on the popup menu.
parent 4040f899
1998-09-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/item-cursor.c (item_cursor_do_drop): Use button-1 to select
an option on the popup menu.
* src/fn-date.c: New file, implements various date and time
manipulation routines.
......
1998-09-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/item-cursor.c (item_cursor_do_drop): Use button-1 to select
an option on the popup menu.
* src/fn-date.c: New file, implements various date and time
manipulation routines.
......
1998-09-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/item-cursor.c (item_cursor_do_drop): Use button-1 to select
an option on the popup menu.
* src/fn-date.c: New file, implements various date and time
manipulation routines.
......
1998-09-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/item-cursor.c (item_cursor_do_drop): Use button-1 to select
an option on the popup menu.
* src/fn-date.c: New file, implements various date and time
manipulation routines.
......
......@@ -82,4 +82,11 @@ documentation for these:
range and then hold down the shift key while making the size
of the selection cursor bigger.
-
- An expression is evaluated constantly on top of the current
selection. There is a number of pre-defined auto-compute
expressions, you can change this by right clicking on this
expression (it is on the bottom right corner)
- If you drag a selection with button 3 instead of button one
there is no default action, rather, a menu pops up with
a list of possibel options on actions to perform.
\ No newline at end of file
......@@ -8,12 +8,6 @@ GNOME Spread Sheet task list
* Sheet
** Cursors
The cursors for the GnumericSheet should be similar to Excel ones
(so that user can have visual feed back on when it is ok to drag an
object).
* EDITION
** Paste special
......
......@@ -23,6 +23,8 @@ dump_func_help (gpointer key, gpointer value, gpointer user_data)
void
dump_functions (char *filename)
{
g_return_if_fail (filename != NULL);
if ((output_file = fopen (filename, "w")) == NULL){
printf ("Can not create file %s\n", filename);
exit (1);
......
......@@ -64,11 +64,14 @@ popup_menu_item_activated (GtkWidget *item, void *value)
}
int
run_popup_menu (GdkEvent *event, char **strings)
run_popup_menu (GdkEvent *event, int button, char **strings)
{
GtkWidget *menu;
int i;
g_return_val_if_fail (event != NULL, -1);
g_return_val_if_fail (strings != NULL, -1);
/* Create the popup menu */
menu = gtk_menu_new ();
for (i = 0;*strings; strings++, i++){
......
......@@ -4,7 +4,7 @@
void gnumeric_notice (char *str);
/* A simple routine for making a popup menu */
int run_popup_menu (GdkEvent *event, char **strings);
int run_popup_menu (GdkEvent *event, int button, char **strings);
/* Utility routine as Gtk does not have any decent routine to do this */
int gtk_radio_group_get_selected (GSList *radio_group);
......
......@@ -64,11 +64,14 @@ popup_menu_item_activated (GtkWidget *item, void *value)
}
int
run_popup_menu (GdkEvent *event, char **strings)
run_popup_menu (GdkEvent *event, int button, char **strings)
{
GtkWidget *menu;
int i;
g_return_val_if_fail (event != NULL, -1);
g_return_val_if_fail (strings != NULL, -1);
/* Create the popup menu */
menu = gtk_menu_new ();
for (i = 0;*strings; strings++, i++){
......
......@@ -4,7 +4,7 @@
void gnumeric_notice (char *str);
/* A simple routine for making a popup menu */
int run_popup_menu (GdkEvent *event, char **strings);
int run_popup_menu (GdkEvent *event, int button, char **strings);
/* Utility routine as Gtk does not have any decent routine to do this */
int gtk_radio_group_get_selected (GSList *radio_group);
......
......@@ -559,7 +559,7 @@ item_cursor_do_drop (ItemCursor *item_cursor, GdkEvent *event)
/* Find out what to do */
if (event->button.button == 3)
action = (ActionType) run_popup_menu (event, drop_context_actions);
action = (ActionType) run_popup_menu (event, 1, drop_context_actions);
else if (event->button.state & GDK_CONTROL_MASK)
action = ACTION_COPY_CELLS;
else
......
......@@ -7,7 +7,7 @@
* Author:
* Miguel de Icaza (miguel@gnu.org)
*/
#include <config.h>
#include <glib.h>
#include <ctype.h>
#include <string.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment