From: joncruz Date: Fri, 3 Apr 2009 06:18:39 +0000 (+0000) Subject: Fix ink toggle buttons to have non-stretching icons. Fixes blurring. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b0429cebdcf14ba61a52e3cf69224154fa05733a;p=inkscape.git Fix ink toggle buttons to have non-stretching icons. Fixes blurring. --- diff --git a/src/ink-action.cpp b/src/ink-action.cpp index 7bcb297d3..dda63c160 100644 --- a/src/ink-action.cpp +++ b/src/ink-action.cpp @@ -662,7 +662,9 @@ static GtkWidget* ink_radio_action_create_tool_item( GtkAction* action ) GtkToolButton* button = GTK_TOOL_BUTTON(item); GtkWidget* child = sp_icon_new( act->private_data->iconSize, act->private_data->iconId ); - gtk_tool_button_set_icon_widget( button, child ); + GtkWidget* align = gtk_alignment_new( 0.5, 0.5, 0.0, 0.0 ); + gtk_container_add( GTK_CONTAINER(align), child ); + gtk_tool_button_set_icon_widget( button, align ); } else { // For now trigger a warning but don't do anything else GtkToolButton* button = GTK_TOOL_BUTTON(item);