[gimp/gimp-2-8] app: remove redundant code from the last commit (cherry picked from commit f71afd245fdb04c121e67448e



commit acc610ec8ac95de754338136c70207a6dabae89f
Author: Michael Natterer <mitch gimp org>
Date:   Sat Nov 10 00:07:23 2012 +0100

    app: remove redundant code from the last commit
    (cherry picked from commit f71afd245fdb04c121e67448edb82ad5423e390e)

 app/widgets/gimptextstyleeditor.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/app/widgets/gimptextstyleeditor.c b/app/widgets/gimptextstyleeditor.c
index 2ef54bb..c66c3a3 100644
--- a/app/widgets/gimptextstyleeditor.c
+++ b/app/widgets/gimptextstyleeditor.c
@@ -680,12 +680,8 @@ gimp_text_style_editor_font_changed (GimpContext         *context,
 
       gtk_text_buffer_get_selection_bounds (buffer, &start, &end);
 
-      gtk_text_buffer_begin_user_action (buffer);
-
       gimp_text_buffer_set_font (editor->buffer, &start, &end,
                                  gimp_context_get_font_name (context));
-
-      gtk_text_buffer_end_user_action (buffer);
     }
 
   insert_tags = gimp_text_style_editor_list_tags (editor, &remove_tags);
@@ -743,12 +739,8 @@ gimp_text_style_editor_color_changed (GimpColorButton     *button,
 
       gtk_text_buffer_get_selection_bounds (buffer, &start, &end);
 
-      gtk_text_buffer_begin_user_action (buffer);
-
       gimp_color_button_get_color (button, &color);
       gimp_text_buffer_set_color (editor->buffer, &start, &end, &color);
-
-      gtk_text_buffer_end_user_action (buffer);
     }
 
   insert_tags = gimp_text_style_editor_list_tags (editor, &remove_tags);
@@ -857,16 +849,12 @@ gimp_text_style_editor_size_changed (GimpSizeEntry       *entry,
 
       gtk_text_buffer_get_selection_bounds (buffer, &start, &end);
 
-      gtk_text_buffer_begin_user_action (buffer);
-
       points = gimp_units_to_points (gimp_size_entry_get_refval (entry, 0),
                                      GIMP_UNIT_PIXEL,
                                      editor->resolution_y);
 
       gimp_text_buffer_set_size (editor->buffer, &start, &end,
                                  PANGO_SCALE * points);
-
-      gtk_text_buffer_end_user_action (buffer);
     }
 
   insert_tags = gimp_text_style_editor_list_tags (editor, &remove_tags);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]