plug-ins/imagemap/imap_file.c plug-ins/imagemap/imap_main.c
2005-01-22 Maurits Rijk <m.rijk@chello.nl> * plug-ins/imagemap/imap_file.c * plug-ins/imagemap/imap_main.c * plug-ins/imagemap/imap_menu.c * plug-ins/imagemap/imap_menu_funcs.[ch] * plug-ins/imagemap/imap_misc.[ch] * plug-ins/imagemap/imap_object.[ch] * plug-ins/imagemap/imap_selection.c: cleaning up code, mostly replacing homebrewn stuff that is now in either GTK or one of the GIMP libs. More to come.
This commit is contained in:
committed by
Maurits Rijk
parent
8b9a69255e
commit
46e92b1ee9
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Generates clickable image maps.
|
||||
*
|
||||
* Copyright (C) 1998-2003 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
|
||||
@ -375,23 +375,6 @@ object_emit_update_signal(Object_t *obj)
|
||||
object_list_callback_call(&obj->list->update_cb, obj);
|
||||
}
|
||||
|
||||
GdkPixmap*
|
||||
object_get_icon(Object_t *obj, GtkWidget *widget, GdkBitmap **mask)
|
||||
{
|
||||
#ifdef _NOT_READY_YET_
|
||||
/* This won't work: can't get a pixmap from a stock icon */
|
||||
if (!obj->class->icon) {
|
||||
GtkWidget *image = gtk_image_new_from_stock(
|
||||
obj->class->get_stock_icon_name(), GTK_ICON_SIZE_MENU);
|
||||
gtk_image_get_pixmap(GTK_IMAGE(image), &obj->class->icon,
|
||||
&obj->class->mask);
|
||||
}
|
||||
*mask = obj->class->mask;
|
||||
|
||||
#endif
|
||||
return obj->class->icon;
|
||||
}
|
||||
|
||||
void
|
||||
do_object_locked_dialog(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user