[goffice] Allow regression equation frame to rotate with text. [#701546]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Allow regression equation frame to rotate with text. [#701546]
- Date: Mon, 3 Jun 2013 19:02:50 +0000 (UTC)
commit c683c79df03b64090e700d251c7835947589e807
Author: Jean Brefort <jean brefort normalesup org>
Date: Mon Jun 3 21:11:17 2013 +0200
Allow regression equation frame to rotate with text. [#701546]
ChangeLog | 5 +++++
NEWS | 1 +
goffice/graph/gog-label.c | 16 ++++++++++++----
3 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bd51d0e..ec69825 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-03 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/graph/gog-label.c (gog_reg_eqn_populate_editor): allow regression
+ equation frame to rotate with text. [#701546]
+
2013-05-31 Jean Brefort <jean brefort normalesup org>
* goffice/graph/gog-color-scale.c
diff --git a/NEWS b/NEWS
index 4bf9ed4..d271667 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ goffice 0.10.3:
Jean:
* Implement color scales. [#695829]
* Allow color scales to have titles. [#688595]
+ * Allow regression equation frame to rotate with text. [#701546]
Morten:
* Fix issue with librsvg includes. [#695167]
diff --git a/goffice/graph/gog-label.c b/goffice/graph/gog-label.c
index 8f69a3e..952c17c 100644
--- a/goffice/graph/gog-label.c
+++ b/goffice/graph/gog-label.c
@@ -534,7 +534,7 @@ gog_reg_eqn_populate_editor (GogObject *gobj,
GogDataAllocator *dalloc,
GOCmdContext *cc)
{
- GtkWidget *w;
+ GtkWidget *w, *box;
GtkBuilder *gui;
GogRegEqn *reg_eqn = GOG_REG_EQN (gobj);
@@ -542,9 +542,8 @@ gog_reg_eqn_populate_editor (GogObject *gobj,
if (gui == NULL)
return;
- go_editor_add_page (editor,
- go_gtk_builder_get_widget (gui, "reg-eqn-prefs"),
- _("Details"));
+ box = go_gtk_builder_get_widget (gui, "reg-eqn-prefs");
+ go_editor_add_page (editor, box, _("Details"));
w = go_gtk_builder_get_widget (gui, "show_eq");
g_object_set_data (G_OBJECT (w), "prop", (void*) "show-eq");
@@ -555,6 +554,15 @@ gog_reg_eqn_populate_editor (GogObject *gobj,
g_object_set_data (G_OBJECT (w), "prop", (void*) "show-r2");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w), reg_eqn->show_r2);
g_signal_connect (w, "toggled", G_CALLBACK (cb_text_visibility_changed), gobj);
+ w = gtk_check_button_new_with_label (_("Rotate frame with text"));
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w), GOG_TEXT (gobj)->rotate_frame);
+ g_signal_connect (w, "toggled", G_CALLBACK (rotate_frame_cb), gobj);
+ gtk_container_add (GTK_CONTAINER (box), w);
+ w = gtk_check_button_new_with_label (_("Rotate background with text"));
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w), GOG_TEXT (gobj)->rotate_bg);
+ g_signal_connect (w, "toggled", G_CALLBACK (rotate_bg_cb), gobj);
+ gtk_container_add (GTK_CONTAINER (box), w);
+ gtk_widget_show_all (box);
g_object_unref (gui);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]