Commit dc31cbbd59694062c84c86514f3d53dc4e344a1b

Authored by Perry Werneck
1 parent f14b6f01

Updating windows version of the save shortcut dialog.

src/objects/os/linux/savedesktopicon.c
... ... @@ -110,8 +110,8 @@
110 110 V3270SimpleAction * action = v3270_dialog_action_new(factory);
111 111  
112 112 action->name = "save.launcher";
113   - action->label = _("Save desktop icon");
114   - action->tooltip = _("Create a desktop icon for the current session");
  113 + action->label = _("Save session shortcut");
  114 + action->tooltip = _("Create shortcut for the current session");
115 115  
116 116 return G_ACTION(action);
117 117  
... ... @@ -342,7 +342,7 @@
342 342  
343 343 }
344 344  
345   - // Save shortcude
  345 + // Save shortcut
346 346 g_key_file_save_to_file(keyfile,gtk_entry_get_text(GTK_ENTRY(inputs[1])),&error);
347 347  
348 348 g_key_file_free(keyfile);
... ...
src/objects/os/windows/savedesktopicon.c
... ... @@ -103,8 +103,8 @@
103 103 V3270SimpleAction * action = v3270_dialog_action_new(factory);
104 104  
105 105 action->name = "save.launcher";
106   - action->label = _("Save desktop icon");
107   - action->tooltip = _("Create a desktop icon for the current session");
  106 + action->label = _("Save session shortcut");
  107 + action->tooltip = _("Create shortcut for the current session");
108 108  
109 109 return G_ACTION(action);
110 110  
... ... @@ -209,14 +209,20 @@
209 209 g_free(filename);
210 210 }
211 211  
212   - gtk_entry_bind_to_filechooser(
213   - inputs[3],
214   - GTK_FILE_CHOOSER_ACTION_SAVE,
215   - _("Save to session filename"),
216   - NULL,
217   - "*.3270",
218   - _("3270 session files")
219   - );
  212 + {
  213 + g_autofree gchar * session_filename = v3270_key_file_build_filename(terminal);
  214 + gtk_entry_set_text(GTK_ENTRY(inputs[3]),session_filename);
  215 +
  216 + gtk_entry_bind_to_filechooser(
  217 + inputs[3],
  218 + GTK_FILE_CHOOSER_ACTION_SAVE,
  219 + _("File for session preferences"),
  220 + NULL,
  221 + "*.3270",
  222 + _("3270 session files")
  223 + );
  224 +
  225 + }
220 226  
221 227 gtk_widget_show_all(GTK_WIDGET(grid));
222 228 return dialog;
... ...
ui/application.xml
... ... @@ -155,7 +155,7 @@
155 155 <section>
156 156  
157 157 <item>
158   - <attribute name="label" translatable="yes">Desktop icon</attribute>
  158 + <attribute name="label" translatable="yes">Shortcut for this session</attribute>
159 159 <attribute name="action">win.save.launcher</attribute>
160 160 </item>
161 161  
... ...
ui/window.xml
... ... @@ -90,7 +90,7 @@
90 90 <section>
91 91  
92 92 <item>
93   - <attribute name="label" translatable="yes">Desktop icon</attribute>
  93 + <attribute name="label" translatable="yes">Shortcut for this session</attribute>
94 94 <attribute name="action">win.save.launcher</attribute>
95 95 </item>
96 96  
... ...