Bug 704432 - Warning occurs when using a tool with a GimpToolGui
gimp_tool_gui_update_buttons(): set the alternative order on the buttons only if it was already provided.
This commit is contained in:
@ -650,6 +650,7 @@ gimp_tool_gui_update_buttons (GimpToolGui *gui)
|
||||
GList *list;
|
||||
gint *ids;
|
||||
gint n_ids;
|
||||
gint n_alternatives = 0;
|
||||
gint i;
|
||||
|
||||
n_ids = g_list_length (private->response_entries);
|
||||
@ -665,17 +666,21 @@ gimp_tool_gui_update_buttons (GimpToolGui *gui)
|
||||
entry->alternative_position < n_ids)
|
||||
{
|
||||
ids[entry->alternative_position] = entry->response_id;
|
||||
n_alternatives++;
|
||||
}
|
||||
}
|
||||
|
||||
if (private->overlay)
|
||||
if (n_ids == n_alternatives)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_dialog_set_alternative_button_order_from_array (GTK_DIALOG (private->dialog),
|
||||
n_ids, ids);
|
||||
if (private->overlay)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_dialog_set_alternative_button_order_from_array (GTK_DIALOG (private->dialog),
|
||||
n_ids, ids);
|
||||
}
|
||||
}
|
||||
|
||||
g_free (ids);
|
||||
|
Reference in New Issue
Block a user