mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
1999-01-08 Jonathan Blandford <jrb@redhat.com>
* glayout.c: now open the new (non-functional) dialog box. If you want functionality, I suppose you could put the old one back in. I'll work on it more this weekend, though, so hopefully it can get back to the old state relatively quickly. * gprefs.c (gnome_configure_box): New function, new file, first start at unified properties box.
This commit is contained in:
parent
76632e128d
commit
9d69629866
@ -1,3 +1,12 @@
|
||||
1999-01-08 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* glayout.c: now open the new (non-functional) dialog box. If you
|
||||
want functionality, I suppose you could put the old one back in.
|
||||
I'll work on it more this weekend, though, so hopefully it can get
|
||||
back to the old state relatively quickly.
|
||||
* gprefs.c (gnome_configure_box): New function, new file, first
|
||||
start at unified properties box.
|
||||
|
||||
1999-01-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gscreen.c (panel_icon_list_select_icon): Remove debugging message.
|
||||
|
@ -48,6 +48,7 @@ GNOMESRCS = \
|
||||
gmetadata.c \
|
||||
gpageprop.c \
|
||||
gpopup.c \
|
||||
gprefs.c \
|
||||
gprop.c \
|
||||
gdialogs.c \
|
||||
gscreen.c \
|
||||
@ -75,6 +76,7 @@ GNOMEHDRS = \
|
||||
gmetadata.h \
|
||||
gpageprop.h \
|
||||
gpopup.h \
|
||||
gprefs.h \
|
||||
gprop.h \
|
||||
gdialogs.h \
|
||||
gscreen.h \
|
||||
@ -139,6 +141,7 @@ OBJS = \
|
||||
gmetadata.o \
|
||||
gpageprop.o \
|
||||
gpopup.o \
|
||||
gprefs.o \
|
||||
gprop.o \
|
||||
gscreen.o \
|
||||
gtools.o \
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "gdesktop.h"
|
||||
#include "setup.h"
|
||||
#include "../vfs/vfs.h"
|
||||
|
||||
#include "gprefs.h"
|
||||
#define UNDEFINED_INDEX -1
|
||||
|
||||
GList *containers = 0;
|
||||
@ -301,7 +301,7 @@ GnomeUIInfo gnome_panel_edit_menu [] = {
|
||||
{ GNOME_APP_UI_SEPARATOR },
|
||||
{ GNOME_APP_UI_ITEM, N_("_Rescan Directory"), N_("Rescan the directory contents"), reread_cmd },
|
||||
{ GNOME_APP_UI_SEPARATOR },
|
||||
{ GNOME_APP_UI_ITEM, N_("Preferences..."), N_("Configure the GNOME Midnight Commander"), configure_box, NULL,
|
||||
{ GNOME_APP_UI_ITEM, N_("Preferences..."), N_("Configure the GNOME Midnight Commander"), gnome_configure_box, NULL,
|
||||
NULL, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_PROP},
|
||||
{ GNOME_APP_UI_ENDOFINFO, 0, 0 }
|
||||
};
|
||||
|
69
gnome/gprefs.c
Normal file
69
gnome/gprefs.c
Normal file
@ -0,0 +1,69 @@
|
||||
#include <config.h>
|
||||
#include "x.h"
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
#include "dir.h"
|
||||
#include "panel.h"
|
||||
#include "gscreen.h"
|
||||
#include "main.h"
|
||||
#include "gmain.h"
|
||||
#include "cmd.h"
|
||||
#include "boxes.h"
|
||||
#include "profile.h"
|
||||
#include "setup.h"
|
||||
#include "panelize.h"
|
||||
#include "dialog.h"
|
||||
#include "layout.h"
|
||||
#include "../vfs/vfs.h"
|
||||
#include "gprefs.h"
|
||||
|
||||
static GtkWidget *
|
||||
file_display_pane (WPanel *panel)
|
||||
{
|
||||
return gtk_frame_new (NULL);
|
||||
}
|
||||
static GtkWidget *
|
||||
confirmation_pane (WPanel *panel)
|
||||
{
|
||||
return gtk_frame_new (NULL);
|
||||
}
|
||||
static GtkWidget *
|
||||
custom_view_pane (WPanel *panel)
|
||||
{
|
||||
return gtk_frame_new (NULL);
|
||||
}
|
||||
static GtkWidget *
|
||||
vfs_pane (WPanel *panel)
|
||||
{
|
||||
return gtk_frame_new (NULL);
|
||||
}
|
||||
static GtkWidget *
|
||||
caching_and_optimizations_pane (WPanel *panel)
|
||||
{
|
||||
return gtk_frame_new (NULL);
|
||||
}
|
||||
void
|
||||
gnome_configure_box (GtkWidget *widget, WPanel *panel)
|
||||
{
|
||||
GtkWidget *prefs_dlg;
|
||||
|
||||
prefs_dlg = gnome_property_box_new ();
|
||||
gnome_property_box_append_page (GNOME_PROPERTY_BOX (prefs_dlg),
|
||||
file_display_pane (panel),
|
||||
gtk_label_new (_("File Display")));
|
||||
gnome_property_box_append_page (GNOME_PROPERTY_BOX (prefs_dlg),
|
||||
confirmation_pane (panel),
|
||||
gtk_label_new (_("Confirmation")));
|
||||
gnome_property_box_append_page (GNOME_PROPERTY_BOX (prefs_dlg),
|
||||
custom_view_pane (panel),
|
||||
gtk_label_new (_("Custom View")));
|
||||
gnome_property_box_append_page (GNOME_PROPERTY_BOX (prefs_dlg),
|
||||
vfs_pane (panel),
|
||||
gtk_label_new (_("Caching and Optimizations")));
|
||||
gnome_property_box_append_page (GNOME_PROPERTY_BOX (prefs_dlg),
|
||||
caching_and_optimizations_pane (panel),
|
||||
gtk_label_new (_("VFS")));
|
||||
gtk_widget_show_all (GNOME_PROPERTY_BOX (prefs_dlg)->notebook);
|
||||
gnome_dialog_run_and_close (GNOME_DIALOG (prefs_dlg));
|
||||
}
|
||||
|
7
gnome/gprefs.h
Normal file
7
gnome/gprefs.h
Normal file
@ -0,0 +1,7 @@
|
||||
#ifndef __GPREFS_H__
|
||||
#define __GPREFS_H__
|
||||
|
||||
void gnome_configure_box (GtkWidget *widget, WPanel *panel);
|
||||
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user