Commit 8b34a92e43619afb6fc8464299195fb6ed2c2233

Authored by perry.werneck@gmail.com
1 parent 467e7df7

Melhorando plugin exemplo

Showing 1 changed file with 3 additions and 6 deletions   Show diff stats
src/plugins/sample/main.c
... ... @@ -34,15 +34,13 @@
34 34  
35 35 static void connected(GtkWidget *terminal, const gchar *host, GtkWidget * window) {
36 36  
37   - fprintf(stderr,"%s\n",__FUNCTION__);
38   - fflush(stderr);
  37 + g_message("%s",__FUNCTION__);
39 38  
40 39 }
41 40  
42 41 static void disconnected(GtkWidget *terminal, GtkWidget * window) {
43 42  
44   - fprintf(stderr,"%s\n",__FUNCTION__);
45   - fflush(stderr);
  43 + g_message("%s",__FUNCTION__);
46 44  
47 45 }
48 46  
... ... @@ -50,8 +48,7 @@
50 48  
51 49 GtkWidget * terminal = pw3270_get_terminal_widget(window);
52 50  
53   - fprintf(stderr,"%s\n",__FUNCTION__);
54   - fflush(stderr);
  51 + g_message("%s",__FUNCTION__);
55 52  
56 53 g_signal_connect(terminal,"disconnected",G_CALLBACK(disconnected),window);
57 54 g_signal_connect(terminal,"connected",G_CALLBACK(connected),window);
... ...