mirror of https://github.com/GNOME/gimp.git
parent
7aacae5d11
commit
28d7e1dcc5
|
@ -1,3 +1,8 @@
|
|||
Sun Jun 7 16:18:16 PDT 1998 Manish singh <yosh@gimp.org>
|
||||
|
||||
* plug-ins/Lighting/lighting_main.c
|
||||
* plug-ins/Lighting/lighting_ui.c: ui fixes (taken from MapObject)
|
||||
|
||||
Sun Jun 7 18:44:17 EDT 1998 Matthew Wilson <msw@gimp.org>
|
||||
|
||||
* plug-ins/webbrowser/web-browser.scm: changed the URL for the
|
||||
|
|
|
@ -307,6 +307,7 @@ void lighting_interactive(GDrawable *drawable)
|
|||
gdk_set_use_xshm(gimp_use_xshm());
|
||||
|
||||
gtk_init (&argc, &argv);
|
||||
gtk_rc_parse (gimp_gtkrc ());
|
||||
|
||||
/* Create application window */
|
||||
/* ========================= */
|
||||
|
|
|
@ -82,6 +82,7 @@ void preview_callback (GtkWidget *widget, gpointer client_data);
|
|||
void apply_callback (GtkWidget *widget, gpointer client_data);
|
||||
void exit_callback (GtkWidget *widget, gpointer client_data);
|
||||
void color_ok_callback (GtkWidget *widget, gpointer client_data);
|
||||
gint color_delete_callback (GtkWidget *widget, GdkEvent *event, gpointer client_data);
|
||||
void color_changed_callback (GtkColorSelection *colorsel, gpointer client_data);
|
||||
void color_cancel_callback (GtkWidget *widget, gpointer client_data);
|
||||
void light_color_callback (GtkWidget *widget, gpointer client_data);
|
||||
|
@ -432,6 +433,12 @@ void color_changed_callback(GtkColorSelection *colorsel, gpointer client_data)
|
|||
mapvals.lightsource.color.b=color[2];
|
||||
}
|
||||
|
||||
gint color_delete_callback(GtkWidget *widget, GdkEvent *event, gpointer client_data)
|
||||
{
|
||||
color_select_diag=NULL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/********************************************/
|
||||
/* Color dialog "Cancel" button callback. */
|
||||
/* Close dialog & restore old color values. */
|
||||
|
@ -453,6 +460,8 @@ void light_color_callback(GtkWidget *widget, gpointer client_data)
|
|||
gtk_window_position (GTK_WINDOW (color_select_diag), GTK_WIN_POS_MOUSE);
|
||||
gtk_widget_show(color_select_diag);
|
||||
csd=GTK_COLOR_SELECTION_DIALOG(color_select_diag);
|
||||
gtk_signal_connect(GTK_OBJECT(csd),"delete_event",
|
||||
(GtkSignalFunc)color_delete_callback,(gpointer)color_select_diag);
|
||||
gtk_signal_connect(GTK_OBJECT(csd->ok_button),"clicked",
|
||||
(GtkSignalFunc)color_ok_callback,(gpointer)color_select_diag);
|
||||
gtk_signal_connect(GTK_OBJECT(csd->cancel_button),"clicked",
|
||||
|
|
Loading…
Reference in New Issue