mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-04 23:21:28 +03:00
Duh, I missed gcmd.c -miguel
This commit is contained in:
parent
480616917c
commit
bf937d0377
69
gnome/gcmd.c
Normal file
69
gnome/gcmd.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 "cmd.h"
|
||||
#include "boxes.h"
|
||||
#include "panelize.h"
|
||||
#include "gcmd.h"
|
||||
|
||||
void
|
||||
gnome_listing_cmd (GtkWidget *widget, WPanel *panel)
|
||||
{
|
||||
GtkAllocation *alloc = >K_WIDGET (panel->list)->allocation;
|
||||
int view_type, use_msformat;
|
||||
char *user, *status;
|
||||
|
||||
view_type = display_box (panel, &user, &status, &use_msformat, get_current_index ());
|
||||
|
||||
if (view_type == -1)
|
||||
return;
|
||||
|
||||
configure_panel_listing (panel, view_type, use_msformat, user, status);
|
||||
}
|
||||
|
||||
void
|
||||
gnome_compare_panels (void)
|
||||
{
|
||||
if (get_other_panel () == NULL){
|
||||
message (1, " Error ", " There is no other panel to compare contents to ");
|
||||
return;
|
||||
}
|
||||
compare_dirs_cmd ();
|
||||
}
|
||||
|
||||
void
|
||||
gnome_open_terminal (void)
|
||||
{
|
||||
my_system (1, shell, "nxterm");
|
||||
}
|
||||
|
||||
void
|
||||
gnome_about_cmd (void)
|
||||
{
|
||||
GtkWidget *about;
|
||||
gchar *authors[] = {
|
||||
"The Midnight Commander Team",
|
||||
"http://mc.blackdown.org/mc",
|
||||
"bug reports: mc-bugs@nuclecu.unam.mx",
|
||||
NULL
|
||||
};
|
||||
|
||||
about = gnome_about_new (_("GNU Midnight Commander"), VERSION,
|
||||
"(C) 1994-1998 the Free Software Fundation",
|
||||
authors,
|
||||
_("The GNOME edition of the Midnight Commander file manager."),
|
||||
NULL);
|
||||
gtk_widget_show (about);
|
||||
}
|
||||
|
||||
void
|
||||
gnome_quit_cmd (void)
|
||||
{
|
||||
gtk_main_quit ();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user