[gnumeric] Enable/disable skip-blanks check in paste special dialog
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] Enable/disable skip-blanks check in paste special dialog
- Date: Thu, 31 Dec 2009 00:44:46 +0000 (UTC)
commit 03bbb820f5ec1bbbbdd956348be031d979262c6d
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Wed Dec 30 17:43:38 2009 -0700
Enable/disable skip-blanks check in paste special dialog
2009-12-30 Andreas J. Guelzow <aguelzow pyrshep ca>
* dialog-paste-special.c (skip_blanks_set_sensitive): new
(dialog_paste_special_type_toggled_cb): connect
skip_blanks_set_sensitive
(dialog_paste_special_cell_op_toggled_cb): ditto
src/dialogs/ChangeLog | 7 +++++++
src/dialogs/dialog-paste-special.c | 12 ++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 8a5814c..49ad02f 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,12 @@
2009-12-30 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * dialog-paste-special.c (skip_blanks_set_sensitive): new
+ (dialog_paste_special_type_toggled_cb): connect
+ skip_blanks_set_sensitive
+ (dialog_paste_special_cell_op_toggled_cb): ditto
+
+2009-12-30 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* hyperlink.glade: remove "orientation" attribute for VBox
2009-12-30 Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/src/dialogs/dialog-paste-special.c b/src/dialogs/dialog-paste-special.c
index 8c033d4..708b27d 100644
--- a/src/dialogs/dialog-paste-special.c
+++ b/src/dialogs/dialog-paste-special.c
@@ -118,6 +118,16 @@ paste_link_set_sensitive (PasteSpecialState *state)
}
static void
+skip_blanks_set_sensitive (PasteSpecialState *state)
+{
+ GtkWidget *button = glade_xml_get_widget (state->gui,"skip-blanks");
+ gboolean sensitive =
+ (3 > gnumeric_glade_group_value (state->gui, paste_type_group)
+ && 0 == gnumeric_glade_group_value (state->gui, cell_operation_group));
+ gtk_widget_set_sensitive (button, sensitive);
+}
+
+static void
cb_destroy (PasteSpecialState *state)
{
if (state->gui != NULL)
@@ -138,6 +148,7 @@ dialog_paste_special_type_toggled_cb (GtkWidget *button, PasteSpecialState *stat
gtk_widget_set_sensitive (glade_xml_get_widget (state->gui,*group),
permit_cell_ops);
paste_link_set_sensitive (state);
+ skip_blanks_set_sensitive (state);
}
}
@@ -146,6 +157,7 @@ dialog_paste_special_cell_op_toggled_cb (GtkWidget *button, PasteSpecialState *s
{
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))) {
paste_link_set_sensitive (state);
+ skip_blanks_set_sensitive (state);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]