Commit c66a79be8d3b995b7755d44a6c24d958a2a5affe
1 parent
60845ae4
Exists in
master
and in
5 other branches
Tentando identificar problema na impressao
Showing
2 changed files
with
4 additions
and
5 deletions
Show diff stats
src/lib3270/session.c
| ... | ... | @@ -431,7 +431,7 @@ void check_session_handle(H3270 **hSession) |
| 431 | 431 | #ifdef ANDROID |
| 432 | 432 | __android_log_print(ANDROID_LOG_VERBOSE, PACKAGE_NAME, "%s called with empty session\n", __FUNCTION__); |
| 433 | 433 | #else |
| 434 | - lib3270_write_log(*hSession,"%s called with empty session",__FUNCTION__); | |
| 434 | + lib3270_write_log(*hSession, "lib3270", "%s called with empty session",__FUNCTION__); | |
| 435 | 435 | #endif // ANDROID |
| 436 | 436 | } |
| 437 | 437 | ... | ... |
src/pw3270/print.c
| ... | ... | @@ -324,7 +324,6 @@ static gchar * enum_to_string(GType type, guint enum_value) |
| 324 | 324 | GtkWidget * label[G_N_ELEMENTS(text)]; |
| 325 | 325 | GtkWidget * widget; |
| 326 | 326 | int f; |
| 327 | - gchar * ptr; | |
| 328 | 327 | |
| 329 | 328 | trace("%s starts",__FUNCTION__); |
| 330 | 329 | |
| ... | ... | @@ -631,7 +630,7 @@ static gchar * enum_to_string(GType type, guint enum_value) |
| 631 | 630 | |
| 632 | 631 | #ifdef X3270_TRACE |
| 633 | 632 | if(action) |
| 634 | - lib3270_trace_event(NULL,"Action %s activated on widget %p\n",gtk_action_get_name(GTK_ACTION(action)),widget); | |
| 633 | + lib3270_trace_event(v3270_get_session(widget),"Action %s activated on widget %p\n",gtk_action_get_name(GTK_ACTION(action)),widget); | |
| 635 | 634 | #endif |
| 636 | 635 | |
| 637 | 636 | lib3270_get_screen_size(info->session,&info->rows,&info->cols); |
| ... | ... | @@ -651,7 +650,7 @@ void print_settings_action(GtkAction *action, GtkWidget *terminal) |
| 651 | 650 | PRINT_INFO info; |
| 652 | 651 | GtkWidget * widget; |
| 653 | 652 | GtkWidget * dialog = gtk_dialog_new_with_buttons ( gettext(title ? title : N_( "Print settings") ), |
| 654 | - gtk_widget_get_toplevel(terminal), | |
| 653 | + GTK_WINDOW(gtk_widget_get_toplevel(terminal)), | |
| 655 | 654 | GTK_DIALOG_DESTROY_WITH_PARENT, |
| 656 | 655 | GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, |
| 657 | 656 | GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, |
| ... | ... | @@ -659,7 +658,7 @@ void print_settings_action(GtkAction *action, GtkWidget *terminal) |
| 659 | 658 | |
| 660 | 659 | memset(&info,0,sizeof(info)); |
| 661 | 660 | |
| 662 | - widget = create_custom_widget(NULL,&info); | |
| 661 | + widget = GTK_WIDGET(create_custom_widget(NULL,&info)); | |
| 663 | 662 | |
| 664 | 663 | gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))),GTK_WIDGET(widget),TRUE,TRUE,2); |
| 665 | 664 | ... | ... |