diff options
author | Milan Crha <mcrha@redhat.com> | 2014-02-13 16:09:21 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-02-13 16:09:21 +0800 |
commit | 55557b13d2111c5728078e4866da77140ace960b (patch) | |
tree | 0fd957e6c2cd07893e321ec7c7b4350830715d2b /modules | |
parent | b48e21d9aa7eb16e559739b71b9d08f90dfa92be (diff) | |
download | gsoc2013-evolution-55557b13d2111c5728078e4866da77140ace960b.tar gsoc2013-evolution-55557b13d2111c5728078e4866da77140ace960b.tar.gz gsoc2013-evolution-55557b13d2111c5728078e4866da77140ace960b.tar.bz2 gsoc2013-evolution-55557b13d2111c5728078e4866da77140ace960b.tar.lz gsoc2013-evolution-55557b13d2111c5728078e4866da77140ace960b.tar.xz gsoc2013-evolution-55557b13d2111c5728078e4866da77140ace960b.tar.zst gsoc2013-evolution-55557b13d2111c5728078e4866da77140ace960b.zip |
Do not use "dialog-apply" icon and make EStockRequest fool-proof
The "dialog-apply" icon is not from a set of standard icons, thus
it cannot be used, which I overlooked yesterday. With its drop are
also dropped other button icons in itip-formatter.
The missing icon made EStockRequest "panic" which effectively broke
page rendering for WebKit - the rendering was never finished.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/itip-formatter/itip-view.c | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c index b33d85ba14..8ef8f81c17 100644 --- a/modules/itip-formatter/itip-view.c +++ b/modules/itip-formatter/itip-view.c @@ -992,13 +992,22 @@ buttons_table_write_button (GString *buffer, html_label = e_mail_formatter_parse_html_mnemonics (label, &access_key); - g_string_append_printf ( - buffer, - "<td><button type=\"button\" name=\"%s\" value=\"%d\" id=\"%s\" accesskey=\"%s\" hidden disabled>" - "<div><img src=\"gtk-stock://%s?size=%d\"> <span>%s</span></div>" - "</button></td>\n", - name, response, name, access_key ? access_key : "" , icon, - GTK_ICON_SIZE_BUTTON, html_label); + if (icon) { + g_string_append_printf ( + buffer, + "<td><button type=\"button\" name=\"%s\" value=\"%d\" id=\"%s\" accesskey=\"%s\" hidden disabled>" + "<div><img src=\"gtk-stock://%s?size=%d\"> <span>%s</span></div>" + "</button></td>\n", + name, response, name, access_key ? access_key : "" , icon, + GTK_ICON_SIZE_BUTTON, html_label); + } else { + g_string_append_printf ( + buffer, + "<td><button type=\"button\" name=\"%s\" value=\"%d\" id=\"%s\" accesskey=\"%s\" hidden disabled>" + "<div><span>%s</span></div>" + "</button></td>\n", + name, response, name, access_key ? access_key : "" , html_label); + } g_free (html_label); @@ -1022,31 +1031,31 @@ append_buttons_table (GString *buffer) "go-jump", ITIP_VIEW_RESPONSE_OPEN); buttons_table_write_button ( buffer, BUTTON_DECLINE_ALL, _("_Decline all"), - "process-stop", ITIP_VIEW_RESPONSE_DECLINE); + NULL, ITIP_VIEW_RESPONSE_DECLINE); buttons_table_write_button ( buffer, BUTTON_DECLINE, _("_Decline"), - "process-stop", ITIP_VIEW_RESPONSE_DECLINE); + NULL, ITIP_VIEW_RESPONSE_DECLINE); buttons_table_write_button ( buffer, BUTTON_TENTATIVE_ALL, _("_Tentative all"), - "dialog-question", ITIP_VIEW_RESPONSE_TENTATIVE); + NULL, ITIP_VIEW_RESPONSE_TENTATIVE); buttons_table_write_button ( buffer, BUTTON_TENTATIVE, _("_Tentative"), - "dialog-question", ITIP_VIEW_RESPONSE_TENTATIVE); + NULL, ITIP_VIEW_RESPONSE_TENTATIVE); buttons_table_write_button ( buffer, BUTTON_ACCEPT_ALL, _("Acce_pt all"), - "dialog-apply", ITIP_VIEW_RESPONSE_ACCEPT); + NULL, ITIP_VIEW_RESPONSE_ACCEPT); buttons_table_write_button ( buffer, BUTTON_ACCEPT, _("Acce_pt"), - "dialog-apply", ITIP_VIEW_RESPONSE_ACCEPT); + NULL, ITIP_VIEW_RESPONSE_ACCEPT); buttons_table_write_button ( buffer, BUTTON_SEND_INFORMATION, _("Send _Information"), - "view-refresh", ITIP_VIEW_RESPONSE_REFRESH); + NULL, ITIP_VIEW_RESPONSE_REFRESH); buttons_table_write_button ( buffer, BUTTON_UPDATE_ATTENDEE_STATUS, _("_Update Attendee Status"), - "view-refresh", ITIP_VIEW_RESPONSE_UPDATE); + NULL, ITIP_VIEW_RESPONSE_UPDATE); buttons_table_write_button ( buffer, BUTTON_UPDATE, _("_Update"), - "view-refresh", ITIP_VIEW_RESPONSE_CANCEL); + NULL, ITIP_VIEW_RESPONSE_CANCEL); g_string_append (buffer, "</tr></table>"); } |