mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
4de36e79d8
* gpageprop.c (item_properties), gprop.c: Add executable editing (command, and terminal). Save the dentry after modification 1998-05-19 Miguel de Icaza <miguel@nuclecu.unam.mx> * gprop.c (change_icon): Test for gp, as the combobox emits the "changed" signal when shutting down. Great. * gdesktop.c (desktop_reload): Missing mc_closedir (desktop_setup_icon): Fix memory leak. (get_desktop_icon): Fix memory leak. (desktop_create_directory_entry): Set the size of the exec vector. (desktop_create_launch_entry): Same. We now create launch entries instead of trying to support regular dropped stuff on the desktop, this makes things easier and more consistent. 1998-05-19 Miguel de Icaza <miguel@nuclecu.unam.mx> * ext.c: Memory leak fixed.
69 lines
1.4 KiB
C
69 lines
1.4 KiB
C
/* Properties dialog for the Gnome edition of the Midnight Commander
|
|
*
|
|
* Copyright (C) 1998 The Free Software Foundation
|
|
*
|
|
* Author: Federico Mena <federico@nuclecu.unam.mx>
|
|
*/
|
|
|
|
#ifndef GPROP_H
|
|
#define GPROP_H
|
|
|
|
|
|
#include <sys/stat.h>
|
|
#include <gtk/gtk.h>
|
|
#include "config.h"
|
|
|
|
|
|
/***** Filename *****/
|
|
|
|
typedef struct {
|
|
GtkWidget *top;
|
|
|
|
GtkWidget *filename;
|
|
} GpropFilename;
|
|
|
|
GpropFilename *gprop_filename_new (char *complete_filename, char *filename);
|
|
void gprop_filename_get_data (GpropFilename *gp, char **filename);
|
|
|
|
/***** Permissions *****/
|
|
|
|
typedef struct {
|
|
GtkWidget *top;
|
|
|
|
GtkWidget *mode_label;
|
|
|
|
GtkWidget *suid, *sgid, *svtx;
|
|
GtkWidget *rusr, *wusr, *xusr;
|
|
GtkWidget *rgrp, *wgrp, *xgrp;
|
|
GtkWidget *roth, *woth, *xoth;
|
|
|
|
GtkWidget *owner;
|
|
GtkWidget *group;
|
|
} GpropPerm;
|
|
|
|
GpropPerm *gprop_perm_new (umode_t umode, char *owner, char *group);
|
|
void gprop_perm_get_data (GpropPerm *gp, umode_t *umode, char **owner, char **group);
|
|
|
|
/***** General *****/
|
|
|
|
typedef struct {
|
|
GtkWidget *top;
|
|
|
|
GtkWidget *title;
|
|
GtkWidget *icon_filename;
|
|
GtkWidget *icon_pixmap;
|
|
} GpropGeneral;
|
|
|
|
GpropGeneral *gprop_general_new (char *title, char *icon_filename);
|
|
void gprop_general_get_data (GpropGeneral *gp, char **title, char **icon_filename);
|
|
|
|
typedef struct {
|
|
GtkWidget *top;
|
|
GtkWidget *entry;
|
|
GtkWidget *check;
|
|
} GpropExec;
|
|
|
|
GpropExec *gprop_exec_new (GnomeDesktopEntry *dentry);
|
|
|
|
#endif
|