plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c
2005-06-06 Maurits Rijk <m.rijk@chello.nl> * plug-ins/imagemap/imap_grid.[ch] * plug-ins/imagemap/imap_main.c * plug-ins/imagemap/imap_menu.[ch] * plug-ins/imagemap/imap_menu_funcs.[ch] * plug-ins/imagemap/imap_object_popup.[ch] * plug-ins/imagemap/imap_polygon.[ch]: more conversion to action based menus. Almost done.
This commit is contained in:
committed by
Maurits Rijk
parent
b29fc29b2e
commit
f9dc08a441
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Generates clickable image maps.
|
||||
*
|
||||
* Copyright (C) 1998-2002 Maurits Rijk lpeek.mrijk@consunet.nl
|
||||
* Copyright (C) 1998-2005 Maurits Rijk m.rijk@chello.nl
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -46,18 +46,6 @@ add_accelerator(GtkWidget *widget, guint accelerator_key,
|
||||
GTK_ACCEL_VISIBLE);
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
prepend_item_with_label(GtkWidget *parent, gchar *label,
|
||||
MenuCallback activate, gpointer data)
|
||||
{
|
||||
GtkWidget *item = gtk_menu_item_new_with_mnemonic(label);
|
||||
gtk_menu_shell_prepend(GTK_MENU_SHELL(parent), item);
|
||||
g_signal_connect(item, "activate", G_CALLBACK(activate), data);
|
||||
gtk_widget_show(item);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
insert_item_with_label(GtkWidget *parent, gint position, gchar *label,
|
||||
MenuCallback activate, gpointer data)
|
||||
@ -69,11 +57,3 @@ insert_item_with_label(GtkWidget *parent, gint position, gchar *label,
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
void
|
||||
menu_command(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
CommandFactory_t *factory = (CommandFactory_t*) data;
|
||||
Command_t *command = (*factory)();
|
||||
command_execute(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user