Skip to content

Commit 9e25871

Browse files
committed
MyFrameMain: rename bookmark loaders
1 parent dcf6dc3 commit 9e25871

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/gui/MyFrameMain.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ MyFrameMain::MyFrameMain(wxWindow* parent, int id, const wxString& title,
163163

164164
splitwinlayout();
165165

166-
bookmarks_load();
166+
bookmarks_load_to_list();
167167

168168
if(show_discovered)
169169
frame_main_menubar->Check(ID_DISCOVERED, true);
@@ -1234,7 +1234,7 @@ void MyFrameMain::splitwinlayout()
12341234
}
12351235

12361236

1237-
bool MyFrameMain::bookmarks_load()
1237+
bool MyFrameMain::bookmarks_load_to_list()
12381238
{
12391239
wxConfigBase *cfg = wxConfigBase::Get();
12401240

@@ -1281,7 +1281,7 @@ bool MyFrameMain::bookmarks_load()
12811281
}
12821282

12831283

1284-
wxSecretString MyFrameMain::bookmarks_entry_to_uri(int index) {
1284+
wxSecretString MyFrameMain::bookmarks_load_one(int index) {
12851285
wxConfigBase *cfg = wxConfigBase::Get();
12861286

12871287
/*
@@ -1925,7 +1925,7 @@ void MyFrameMain::bookmarks_add(wxCommandEvent &event)
19251925
cfg->SetPath(wxT("/"));
19261926

19271927
// and load into listbox
1928-
bookmarks_load();
1928+
bookmarks_load_to_list();
19291929
}
19301930
}
19311931

@@ -1955,7 +1955,7 @@ void MyFrameMain::bookmarks_edit(wxCommandEvent &event)
19551955
cfg->SetPath(wxT("/"));
19561956

19571957
// and load into listbox
1958-
bookmarks_load();
1958+
bookmarks_load_to_list();
19591959
}
19601960

19611961

@@ -1973,7 +1973,7 @@ void MyFrameMain::bookmarks_delete(wxCommandEvent &event)
19731973
#if wxUSE_SECRETSTORE
19741974
int sel = list_box_bookmarks->GetSelection();
19751975
if(sel != wxNOT_FOUND) {
1976-
wxURI uri(bookmarks_entry_to_uri(sel));
1976+
wxURI uri(bookmarks_load_one(sel));
19771977
wxString host = uri.GetServer();
19781978
wxString port = uri.GetPort();
19791979
wxString user = getQueryValue(uri, "VncUsername"); // RFC 7869
@@ -1988,7 +1988,7 @@ void MyFrameMain::bookmarks_delete(wxCommandEvent &event)
19881988
wxLogError(_("No bookmark with this name!"));
19891989

19901990
// and re-read
1991-
bookmarks_load();
1991+
bookmarks_load_to_list();
19921992
}
19931993

19941994

@@ -2180,7 +2180,7 @@ void MyFrameMain::listbox_bookmarks_dclick(wxCommandEvent &event)
21802180
return;
21812181
}
21822182

2183-
conn_spawn(bookmarks_entry_to_uri(sel));
2183+
conn_spawn(bookmarks_load_one(sel));
21842184
}
21852185

21862186

src/gui/MyFrameMain.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class MyFrameMain: public FrameMain
5555

5656
void splitwinlayout();
5757

58-
bool bookmarks_load();
59-
wxSecretString bookmarks_entry_to_uri(int index);
58+
bool bookmarks_load_to_list();
59+
wxSecretString bookmarks_load_one(int index);
6060

6161
// service can be user@host:port notation or a full vnc:// URI
6262
void conn_spawn(const wxString& service, int listenPort = -1);

0 commit comments

Comments
 (0)