Code

Fix ink toggle buttons to have non-stretching icons. Fixes blurring.
authorjoncruz <joncruz@users.sourceforge.net>
Fri, 3 Apr 2009 06:18:39 +0000 (06:18 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Fri, 3 Apr 2009 06:18:39 +0000 (06:18 +0000)
src/ink-action.cpp

index 7bcb297d35c36d54c322b9bc8642c38b0a371ae3..dda63c160c73fcb966fcc3f436a3036b8e7e00f6 100644 (file)
@@ -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);