From 51043471b926825dae9254dcc78f90469f9bed44 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 10 Mar 2008 14:03:37 +0100 Subject: [PATCH] Removed typedef for GUI structure (use only struct) --- src/gui/curses/gui-curses.h | 4 +--- src/gui/gtk/gui-gtk.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gui/curses/gui-curses.h b/src/gui/curses/gui-curses.h index c2a77f76e..663b4963c 100644 --- a/src/gui/curses/gui-curses.h +++ b/src/gui/curses/gui-curses.h @@ -31,7 +31,7 @@ #define WINDOW_MIN_WIDTH 10 #define WINDOW_MIN_HEIGHT 5 -#define GUI_CURSES(window) ((t_gui_curses_objects *)(window->gui_objects)) +#define GUI_CURSES(window) ((struct t_gui_curses_objects *)(window->gui_objects)) struct t_gui_bar_window { @@ -45,8 +45,6 @@ struct t_gui_bar_window /* (only used if bar is in windows) */ }; -typedef struct t_gui_curses_objects t_gui_curses_objects; - struct t_gui_curses_objects { WINDOW *win_title; /* title window */ diff --git a/src/gui/gtk/gui-gtk.h b/src/gui/gtk/gui-gtk.h index 8bedd73cf..3909230b7 100644 --- a/src/gui/gtk/gui-gtk.h +++ b/src/gui/gtk/gui-gtk.h @@ -52,7 +52,7 @@ struct t_gui_line; #define WEECHAT_COLOR_CYAN COLOR_YELLOW #define WEECHAT_COLOR_WHITE COLOR_WHITE -#define GUI_GTK(window) ((t_gui_gtk_objects *)(window->gui_objects)) +#define GUI_GTK(window) ((struct t_gui_gtk_objects *)(window->gui_objects)) struct t_gui_bar_window { @@ -64,8 +64,6 @@ struct t_gui_bar_window /* (only used if bar is in windows) */ }; -typedef struct t_gui_gtk_objects t_gui_gtk_objects; - struct t_gui_gtk_objects { GtkWidget *textview_chat; /* textview widget for chat */