123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef __MSSH_WINDOW_H__
- #define __MSSH_WINDOW_H__
- #include <gtk/gtk.h>
- #include <vte/vte.h>
- #include "mssh-terminal.h"
- G_BEGIN_DECLS
- #define MSSH_TYPE_WINDOW mssh_window_get_type()
- #define MSSH_WINDOW(obj) G_TYPE_CHECK_INSTANCE_CAST(obj,\
- MSSH_TYPE_WINDOW, MSSHWindow)
- #define MSSH_WINDOW_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass,\
- MSSH_WINDOW_TYPE, MSSHWindowClass)
- #define IS_MSSH_WINDOW(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj,\
- MSSH_TYPE_WINDOW)
- #define IS_MSSH_WINDOW_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(klass,\
- MSSH_TYPE_WINDOW)
- typedef struct
- {
- GtkWindow widget;
- GtkWidget *table;
- GtkWidget *server_menu;
- GtkWidget *global_entry;
- GtkAccelGroup *accel;
- GArray *terminals;
- char **env;
- int columns;
- int columns_override;
- int timeout;
- gboolean close_ended_sessions;
- gboolean exit_on_all_closed;
- gint modifier;
- gint dir_focus;
- gint last_closed;
- } MSSHWindow;
- typedef struct
- {
- GtkWindowClass parent_class;
- } MSSHWindowClass;
- GType mssh_window_get_type(void) G_GNUC_CONST;
- GtkWidget* mssh_window_new(void);
- void mssh_window_start_session(MSSHWindow* window, char **env,
- GArray *hosts, long cols);
- void mssh_window_relayout(MSSHWindow *window);
- void mssh_window_session_closed(MSSHTerminal *terminal, gpointer data);
- gboolean mssh_window_focus(GtkWidget *widget, GObject *acceleratable,
- guint keyval, GdkModifierType modifier, gpointer data);
- G_END_DECLS
- #endif /* __MSSH_WINDOW_H__ */
|