diff options
author | Agney Lopes Roth Ferraz <agney@debian.org> | 2006-06-21 22:18:24 -0300 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:36 -0500 |
commit | 078e9c700feccfcf1318b7bde49d6e464bc2ac8c (patch) | |
tree | 4d24c99643f10e4b8b75bebaaec5d48294b3b112 /report.c | |
parent | 18820242e374421ebd6d504a20d11f310b2ac023 (diff) | |
parent | 720f5023a8f68aaaa54cb6b7bf46efee23b5b4c3 (diff) |
Import Debian changes 0.4.1-1
hardinfo (0.4.1-1) unstable; urgency=low
* New upstream release.
Diffstat (limited to 'report.c')
-rw-r--r-- | report.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -116,7 +116,9 @@ report_html_table(ReportContext *ctx, gchar *text) if (g_str_equal(value, "...")) { g_free(value); - value = ctx->entry->fieldfunc(key); + if (!(value = ctx->entry->fieldfunc(key))) { + value = g_strdup("..."); + } } if (*key == '$') { @@ -194,8 +196,11 @@ report_get_filename(void) GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); +#if GTK_CHECK_VERSION(2,8,0) gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog), TRUE); +#endif + gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), "hardinfo report.html"); @@ -434,6 +439,7 @@ static ReportDialog gtk_button_box_set_layout(GTK_BUTTON_BOX(dialog1_action_area), GTK_BUTTONBOX_END); + button8 = gtk_button_new_from_stock(GTK_STOCK_CANCEL); gtk_widget_show(button8); gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button8, |