Commit 03d34987655395367d672a787117f3c68626f86c
1 parent
142ec7a9
Exists in
master
and in
5 other branches
Fixing windows bugs.
Showing
4 changed files
with
9 additions
and
3 deletions
Show diff stats
.gitignore
src/pw3270/main.c
| ... | ... | @@ -254,7 +254,7 @@ int main(int argc, char *argv[]) |
| 254 | 254 | trace("appdir=\"%s\"",appdir); |
| 255 | 255 | trace("locdir=\"%s\"",locdir); |
| 256 | 256 | |
| 257 | - g_chdir(appdir); | |
| 257 | +// g_chdir(appdir); | |
| 258 | 258 | |
| 259 | 259 | bindtextdomain( PACKAGE_NAME, locdir ); |
| 260 | 260 | bind_textdomain_codeset(PACKAGE_NAME, "UTF-8"); |
| ... | ... | @@ -426,7 +426,7 @@ int main(int argc, char *argv[]) |
| 426 | 426 | |
| 427 | 427 | g_message("Windows Application directory is \"%s\"",appdir); |
| 428 | 428 | |
| 429 | - g_chdir(appdir); | |
| 429 | +// g_chdir(appdir); | |
| 430 | 430 | |
| 431 | 431 | g_message("Application name is \"%s\"", g_get_application_name()); |
| 432 | 432 | g_message("Session name is \"%s\"", session_name ? session_name : "undefined"); |
| ... | ... | @@ -476,6 +476,7 @@ int main(int argc, char *argv[]) |
| 476 | 476 | session_name = PACKAGE_NAME; |
| 477 | 477 | |
| 478 | 478 | rc = initialize(); |
| 479 | + | |
| 479 | 480 | if(!rc) |
| 480 | 481 | { |
| 481 | 482 | GtkSettings *settings = gtk_settings_get_default(); |
| ... | ... | @@ -487,6 +488,7 @@ int main(int argc, char *argv[]) |
| 487 | 488 | } |
| 488 | 489 | |
| 489 | 490 | toplevel = pw3270_new(host,systype,syscolors); |
| 491 | + | |
| 490 | 492 | pw3270_set_session_name(toplevel,session_name); |
| 491 | 493 | |
| 492 | 494 | if(oversize) | ... | ... |
src/pw3270/plugin.c
| ... | ... | @@ -43,7 +43,7 @@ |
| 43 | 43 | { |
| 44 | 44 | #ifdef _WIN32 |
| 45 | 45 | UINT errorMode; |
| 46 | - lib3270_autoptr(char) path = lib3270_build_data_filename("plugins") | |
| 46 | + lib3270_autoptr(char) path = lib3270_build_data_filename("plugins",NULL); | |
| 47 | 47 | #else |
| 48 | 48 | const gchar * path = LIBDIR G_DIR_SEPARATOR_S G_STRINGIFY(PRODUCT_NAME) "-plugins"; |
| 49 | 49 | #endif // _WIN32 | ... | ... |
src/pw3270/window.c
| ... | ... | @@ -775,6 +775,9 @@ static GtkWidget * trace_window = NULL; |
| 775 | 775 | lib3270_autoptr(char) path = lib3270_build_data_filename("ui",NULL); |
| 776 | 776 | #endif // DEBUG |
| 777 | 777 | |
| 778 | + trace("Loading UI from \"%s\"",path); | |
| 779 | + trace("Current dir is \"%s\"",g_get_current_dir()); | |
| 780 | + | |
| 778 | 781 | if(ui_parse_xml_folder(GTK_WINDOW(widget),path,groupname,popupname,widget->terminal,widget_setup)) |
| 779 | 782 | { |
| 780 | 783 | gtk_widget_set_sensitive(widget->terminal,FALSE); | ... | ... |