mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
a56f89b812
Redid the indexed palette dialog to not crash, to be a bit more usable, and to be a cleaner module. A first shot at using gcg in actual practice.. If something is screwed, let me know!
29 lines
569 B
Plaintext
29 lines
569 B
Plaintext
#include <gimp.gh>
|
|
#include <gtk.gh>
|
|
|
|
module Gimp.ColormapDialog;
|
|
|
|
import Gtk, g;
|
|
|
|
class ColormapDialog : Gtk.Dialog {
|
|
public static ColormapDialog* create(Set* context);
|
|
read-only Image* image;
|
|
read-only int col-index;
|
|
protected pre-emit void selected ();
|
|
Widget* vbox;
|
|
Preview* palette;
|
|
Widget* image-menu;
|
|
OptionMenu* option-menu;
|
|
Set* context;
|
|
uint event-handler;
|
|
int xn;
|
|
int yn;
|
|
int cellsize;
|
|
Entry* index-entry;
|
|
Entry* color-entry;
|
|
SetHandlerId rename-handler;
|
|
SetHandlerId cmap-changed-handler;
|
|
Widget* add-item;
|
|
.ColorSelectP color-select;
|
|
}
|