From 9d4d51021438d8faa820fc1cabdda4691a080197 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 12 Nov 1998 02:31:53 +0000 Subject: [PATCH] 1998-11-11 Federico Mena Quintero * panel.h (WPanel): Instead of the "#ifdef GNOME" mess in the WPanel structure, we now have a single opaque pointer to UI data, called port_ui. GUI stuff specific to each port should be here. This is a work in progress. --- gnome/gmc-window.h | 37 +++++++++++++++++++++++++++++++++++++ src/ChangeLog | 7 +++++++ src/panel.h | 4 +++- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 gnome/gmc-window.h diff --git a/gnome/gmc-window.h b/gnome/gmc-window.h new file mode 100644 index 000000000..3e074707b --- /dev/null +++ b/gnome/gmc-window.h @@ -0,0 +1,37 @@ +/* Toplevel file window for the Midnight Commander + * + * Copyright (C) 1998 The Free Software Foundation + * + * Author: Federico Mena + */ + +#ifndef GMC_WINDOW_H +#define GMC_WINDOW_H + +#include +#include + +BEGIN_GNOME_DECLS + + +typedef struct _GmcWindow Gmcwindow; +typedef struct _GmcWindowClass GmcWindowClass; + +struct _GmcWindow { + GnomeApp app; + + GtkWidget *paned; /* Paned container to split into tree/list views */ + GtkWidget *tree; /* Tree view */ + GtkWidget *notebook; /* Notebook to switch between list and icon views */ + GtkWidget *clist; /* List view (column list) */ + GtkWidget *ilist; /* Icon view (icon list) */ +}; + +struct _GmcWindowClass { + GnomeAppClass parent_class; +}; + + +END_GNOME_DECLS + +#endif diff --git a/src/ChangeLog b/src/ChangeLog index 416636a2c..36452e1f7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +1998-11-11 Federico Mena Quintero + + * panel.h (WPanel): Instead of the "#ifdef GNOME" mess in the + WPanel structure, we now have a single opaque pointer to UI data, + called port_ui. GUI stuff specific to each port should be here. + This is a work in progress. + 1998-11-10 Federico Mena Quintero * setup.c: Removed the icons_snap_to_grid and diff --git a/src/panel.h b/src/panel.h index 3f713ef88..eb198c4c8 100644 --- a/src/panel.h +++ b/src/panel.h @@ -113,7 +113,9 @@ typedef struct { int has_dir_sizes; /* Set if directories have sizes = to du -s */ -#ifdef HAVE_GNOME + void *port_ui; /* UI stuff specific to each GUI port */ + +#Ifdef HAVE_GNOME /* These are standard GtkWidgets */ void *xwindow; /* The toplevel window */