summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-28 23:39:30 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-28 23:39:30 (EDT)
commit5116b0cde3a0f4e956d0e7861cf39ab45047a9f4 (patch)
treefac6539f980726ec3b6897ba7a160d2b0d8e3d5e
parentacdbbfd26edb7d7d7e5a14f3dc5aba2834cb531e (diff)
downloadmarquee-5116b0cde3a0f4e956d0e7861cf39ab45047a9f4.zip
marquee-5116b0cde3a0f4e956d0e7861cf39ab45047a9f4.tar.gz
marquee-5116b0cde3a0f4e956d0e7861cf39ab45047a9f4.tar.bz2
MqWebView: Rename variable in save type change callback
-rw-r--r--src/web-view.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/web-view.c b/src/web-view.c
index 31540b3..75c8695 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -941,26 +941,26 @@ static void
save_type_changed_cb(GtkComboBox *combo_box, GtkFileChooser *chooser)
{
gchar *name;
- gchar *ext;
+ gchar *extension;
const gchar *active_id;
gchar *new_name;
name = gtk_file_chooser_get_current_name(chooser);
- ext = strrchr(name, '.') + 1;
+ extension = strrchr(name, '.') + 1;
active_id = gtk_combo_box_get_active_id(combo_box);
if (g_strcmp0(active_id, "html") == 0) {
- if (!extension_is_html(ext)) {
+ if (!extension_is_html(extension)) {
/* Extension is not "htm" or "html". */
- ext[0] = '\0'; /* Remove extension. */
+ extension[0] = '\0'; /* Remove extension. */
new_name = g_strconcat(name, "html", NULL);
gtk_file_chooser_set_current_name(chooser, new_name);
g_free(new_name);
}
} else if (g_strcmp0(active_id, "mhtml") == 0) {
- if (!extension_is_mhtml(ext)) {
+ if (!extension_is_mhtml(extension)) {
/* Extension is not "mht", "mhtm", or "mhtml". */
- ext[0] = '\0'; /* Remove extension. */
+ extension[0] = '\0'; /* Remove extension. */
new_name = g_strconcat(name, "mhtml", NULL);
gtk_file_chooser_set_current_name(chooser, new_name);
g_free(new_name);