app: add some function stubs to GimpOverlayDialog
and move the TODO comments from GimpToolGui to the stubs.
This commit is contained in:
@ -482,7 +482,8 @@ gimp_tool_gui_set_default_response (GimpToolGui *gui,
|
||||
|
||||
if (private->overlay)
|
||||
{
|
||||
/* TODO */
|
||||
gimp_overlay_dialog_set_default_response (GIMP_OVERLAY_DIALOG (private->dialog),
|
||||
response_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -511,7 +512,8 @@ gimp_tool_gui_set_response_sensitive (GimpToolGui *gui,
|
||||
|
||||
if (private->overlay)
|
||||
{
|
||||
/* TODO */
|
||||
gimp_overlay_dialog_set_response_sensitive (GIMP_OVERLAY_DIALOG (private->dialog),
|
||||
response_id, sensitive);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -575,21 +577,15 @@ gimp_tool_gui_create_dialog (GimpToolGui *gui)
|
||||
entry->stock_id,
|
||||
entry->response_id);
|
||||
|
||||
/* FIXME */
|
||||
#if 0
|
||||
if (! entry->sensitive)
|
||||
gimp_overlay_dialog_set_response_sensitive (GIMP_OVERLAY_DIALOG (private->dialog),
|
||||
entry->response_id,
|
||||
FALSE);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* FIXME */
|
||||
#if 0
|
||||
if (private->default_response != -1)
|
||||
gimp_overlay_dialog_set_default_response (GIMP_OVERLAY_DIALOG (private->dialog),
|
||||
private->default_response);
|
||||
#endif
|
||||
|
||||
gtk_container_set_border_width (GTK_CONTAINER (private->dialog), 6);
|
||||
|
||||
@ -674,7 +670,8 @@ gimp_tool_gui_update_buttons (GimpToolGui *gui)
|
||||
{
|
||||
if (private->overlay)
|
||||
{
|
||||
/* TODO */
|
||||
gimp_overlay_dialog_set_alternative_button_order (GIMP_OVERLAY_DIALOG (private->dialog),
|
||||
n_ids, ids);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -358,6 +358,29 @@ gimp_overlay_dialog_add_button (GimpOverlayDialog *dialog,
|
||||
return button;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_overlay_dialog_set_alternative_button_order (GimpOverlayDialog *overlay,
|
||||
gint n_ids,
|
||||
gint *ids)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
void
|
||||
gimp_overlay_dialog_set_default_response (GimpOverlayDialog *overlay,
|
||||
gint response_id)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
void
|
||||
gimp_overlay_dialog_set_response_sensitive (GimpOverlayDialog *overlay,
|
||||
gint response_id,
|
||||
gboolean sensitive)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
static void
|
||||
response_data_free (gpointer data)
|
||||
{
|
||||
|
@ -67,6 +67,15 @@ void gimp_overlay_dialog_add_buttons_valist (GimpOverlayDialog *overlay,
|
||||
GtkWidget * gimp_overlay_dialog_add_button (GimpOverlayDialog *overlay,
|
||||
const gchar *button_text,
|
||||
gint response_id);
|
||||
void gimp_overlay_dialog_set_alternative_button_order
|
||||
(GimpOverlayDialog *overlay,
|
||||
gint n_ids,
|
||||
gint *ids);
|
||||
void gimp_overlay_dialog_set_default_response (GimpOverlayDialog *overlay,
|
||||
gint response_id);
|
||||
void gimp_overlay_dialog_set_response_sensitive (GimpOverlayDialog *overlay,
|
||||
gint response_id,
|
||||
gboolean sensitive);
|
||||
|
||||
|
||||
#endif /* __GIMP_OVERLAY_DIALOG_H__ */
|
||||
|
Reference in New Issue
Block a user