diff options
author | NatsuDrag9 | 2018-05-31 11:43:09 +0530 |
---|---|---|
committer | NatsuDrag9 | 2018-05-31 11:43:09 +0530 |
commit | 39d3eeb5fc8c969f8eed03e0c1fc818453cca6df (patch) | |
tree | f7d90029412fed4919a597e99f8517ea8652ee1c /ldmicro/maincontrols.cpp | |
parent | 82da829c02377db4c160ef7da06deea992989809 (diff) | |
download | LDMicroGtk-39d3eeb5fc8c969f8eed03e0c1fc818453cca6df.tar.gz LDMicroGtk-39d3eeb5fc8c969f8eed03e0c1fc818453cca6df.tar.bz2 LDMicroGtk-39d3eeb5fc8c969f8eed03e0c1fc818453cca6df.zip |
Ported the function updating titlebar.
Diffstat (limited to 'ldmicro/maincontrols.cpp')
-rw-r--r-- | ldmicro/maincontrols.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ldmicro/maincontrols.cpp b/ldmicro/maincontrols.cpp index f9cc95a..7fc708c 100644 --- a/ldmicro/maincontrols.cpp +++ b/ldmicro/maincontrols.cpp @@ -116,23 +116,24 @@ void MakeMainWindowControls(void) //----------------------------------------------------------------------------- void UpdateMainWindowTitleBar(void) { - char line[MAX_PATH+100]; + char line[PATH_MAX+100]; if(InSimulationMode) { if(RealTimeSimulationRunning) { - strcpy(line, _("LDmicro - Simulation (Running)")); + strcpy(line, "LDmicro - Simulation (Running)"); } else { - strcpy(line, _("LDmicro - Simulation (Stopped)")); + strcpy(line, "LDmicro - Simulation (Stopped)"); } } else { - strcpy(line, _("LDmicro - Program Editor")); + strcpy(line, "LDmicro - Program Editor"); } if(strlen(CurrentSaveFile) > 0) { sprintf(line+strlen(line), " - %s", CurrentSaveFile); } else { - strcat(line, _(" - (not yet saved)")); + strcat(line, " - (not yet saved)"); } + + gtk_window_set_title (GTK_WINDOW (window), line); - SetWindowText(MainWindow, line); } //----------------------------------------------------------------------------- |