diff --git a/ChangeLog b/ChangeLog index e9950f3244..dff778dfe9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-08-03 Andreas Köhler + + * src/gnome-utils/dialog-reset-warnings.c: + * src/gnome/schemas/apps_gnucash_warnings.schemas.in: Add tooltips + to the checkboxes in the Reset Warnings dialog showing the long + descriptions. Remove all linebreaks in these strings to make + them look better. + 2006-08-02 David Hampton * various: Remove the majority of the remaining deprecated widgets diff --git a/src/gnome-utils/dialog-reset-warnings.c b/src/gnome-utils/dialog-reset-warnings.c index d4aa96a1ac..73d9261f7a 100644 --- a/src/gnome-utils/dialog-reset-warnings.c +++ b/src/gnome-utils/dialog-reset-warnings.c @@ -38,6 +38,7 @@ static QofLogModule log_module = GNC_MOD_PREFS; #define GCONF_SECTION "dialogs/reset_warnings" #define DIALOG_RESET_WARNINGS_CM_CLASS "reset-warnings" #define GCONF_ENTRY_LIST "gconf_entries" +#define TIPS_STRING "tips" void gnc_reset_warnings_select_all_cb (GtkButton *button, gpointer user_data); void gnc_reset_warnings_unselect_all_cb (GtkButton *button, gpointer user_data); @@ -240,7 +241,7 @@ gnc_reset_warnings_response_cb (GtkDialog *dialog, static void gnc_reset_warnings_add_one (GConfEntry *entry, GtkWidget *box) { - const gchar *name, *schema_name, *desc = NULL; + const gchar *name, *schema_name, *desc, *long_desc = NULL; GtkWidget *checkbox; GConfSchema *schema = NULL; @@ -253,7 +254,17 @@ gnc_reset_warnings_add_one (GConfEntry *entry, GtkWidget *box) DEBUG("found schema %p", schema); desc = gconf_schema_get_short_desc(schema); DEBUG("description %s", desc); + long_desc = gconf_schema_get_long_desc(schema); checkbox = gtk_check_button_new_with_label(desc ? desc : name); + if (long_desc) { + GtkTooltips *tips; + tips = g_object_get_data(G_OBJECT(box), TIPS_STRING); + if (!tips) { + tips = gtk_tooltips_new(); + g_object_set_data(G_OBJECT(box), TIPS_STRING, tips); + } + gtk_tooltips_set_tip(tips, checkbox, long_desc, NULL); + } gconf_schema_free(schema); } else { DEBUG("no schema"); diff --git a/src/gnome/schemas/apps_gnucash_warnings.schemas.in b/src/gnome/schemas/apps_gnucash_warnings.schemas.in index 44777fca17..c5a4ba54f6 100644 --- a/src/gnome/schemas/apps_gnucash_warnings.schemas.in +++ b/src/gnome/schemas/apps_gnucash_warnings.schemas.in @@ -11,11 +11,7 @@ 0 Change contents of reconciled split - - This dialog is presented before allowing you to change the - contents of a reconciled split. Allowing these changes can - make it hard to perform future reconciliations. - + This dialog is presented before allowing you to change the contents of a reconciled split. Allowing these changes can make it hard to perform future reconciliations. @@ -28,10 +24,7 @@ 0 Exit GnuCash - - This dialog is presented when you attempt to close the last GnuCash - window. - + This dialog is presented when you attempt to close the last GnuCash window. @@ -44,12 +37,7 @@ 0 Mark transaction split as unreconciled - - This dialog is presented before allowing you to mark a - transaction split as unreconciled. Doing so will throw off - the reconciled value of the register and can make it hard to - perform future reconciliations. - + This dialog is presented before allowing you to mark a transaction split as unreconciled. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations. @@ -62,9 +50,7 @@ 0 Read only register - - This dialog is presented when a read-only register is opened. - + This dialog is presented when a read-only register is opened. @@ -77,9 +63,7 @@ 0 Delete a transaction - - This dialog is presented before allowing you to delete a transaction. - + This dialog is presented before allowing you to delete a transaction. @@ -92,12 +76,7 @@ 0 Delete a transaction - - This dialog is presented before allowing you to delete a - transaction that contains reconciled splits. Doing so will - throw off the reconciled value of the register and can make - it hard to perform future reconciliations. - + This dialog is presented before allowing you to delete a transaction that contains reconciled splits. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations. @@ -110,10 +89,7 @@ 0 Remove a splits from a transaction - - This dialog is presented before allowing you to remove a - splits from a transaction. - + This dialog is presented before allowing you to remove a splits from a transaction. @@ -126,12 +102,7 @@ 0 Remove a splits from a transaction - - This dialog is presented before allowing you to remove a - reconciled splits from a transaction. Doing so will throw - off the reconciled value of the register and can make it - hard to perform future reconciliations. - + This dialog is presented before allowing you to remove a reconciled split from a transaction. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations. @@ -144,10 +115,7 @@ 0 Remove all the splits from a transaction - - This dialog is presented before allowing you to remove all - splits from a transaction. - + This dialog is presented before allowing you to remove all splits from a transaction. @@ -160,12 +128,7 @@ 0 Remove all the splits from a transaction - - This dialog is presented before allowing you to remove all - splits (including some reconciled splits) from a transaction. - Doing so will throw off the reconciled value of the register - and can make it hard to perform future reconciliations. - + This dialog is presented before allowing you to remove all splits (including some reconciled splits) from a transaction. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations. @@ -178,10 +141,7 @@ 0 Commit changes to a transaction - - This dialog is presented when you attempt to move out of a modified - transaction. The changed data must be either saved or discarded. - + This dialog is presented when you attempt to move out of a modified transaction. The changed data must be either saved or discarded. @@ -194,10 +154,7 @@ 0 Duplicating a changed transaction - - This dialog is presented when you attempt to duplicate a modified - transaction. The changed data must be saved or the duplication canceled. - + This dialog is presented when you attempt to duplicate a modified transaction. The changed data must be saved or the duplication canceled. @@ -210,10 +167,7 @@ 0 Commit changes to a invoice_entry - - This dialog is presented when you attempt to move out of a modified - invoice entry. The changed data must be either saved or discarded. - + This dialog is presented when you attempt to move out of a modified invoice entry. The changed data must be either saved or discarded. @@ -226,10 +180,7 @@ 0 Duplicating a changed invoice_entry - - This dialog is presented when you attempt to duplicate a modified - invoice entry. The changed data must be saved or the duplication canceled. - + This dialog is presented when you attempt to duplicate a modified invoice entry. The changed data must be saved or the duplication canceled. @@ -242,9 +193,7 @@ 0 Delete a commodity - - This dialog is presented before allowing you to delete a commodity. - + This dialog is presented before allowing you to delete a commodity. @@ -257,11 +206,7 @@ 0 Delete a commodity and prices - - This dialog is presented before allowing you to delete a commodity - that has price quotes attached. Deleting the commodity will delete - the quotes as well. - + This dialog is presented before allowing you to delete a commodity that has price quotes attached. Deleting the commodity will delete the quotes as well. @@ -274,10 +219,7 @@ 0 Delete multiple price quotes - - This dialog is presented before allowing you to delete multiple price - quotes at one time. - + This dialog is presented before allowing you to delete multiple price quotes at one time.