Commit 8b34a92e43619afb6fc8464299195fb6ed2c2233
1 parent
467e7df7
Exists in
master
and in
5 other branches
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,15 +34,13 @@ | ||
| 34 | 34 | ||
| 35 | static void connected(GtkWidget *terminal, const gchar *host, GtkWidget * window) { | 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 | static void disconnected(GtkWidget *terminal, GtkWidget * window) { | 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,8 +48,7 @@ | ||
| 50 | 48 | ||
| 51 | GtkWidget * terminal = pw3270_get_terminal_widget(window); | 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 | g_signal_connect(terminal,"disconnected",G_CALLBACK(disconnected),window); | 53 | g_signal_connect(terminal,"disconnected",G_CALLBACK(disconnected),window); |
| 57 | g_signal_connect(terminal,"connected",G_CALLBACK(connected),window); | 54 | g_signal_connect(terminal,"connected",G_CALLBACK(connected),window); |