Sync sync - Federico

This commit is contained in:
Miguel de Icaza 1998-12-01 00:33:02 +00:00
parent bd88c6ae00
commit 7ee95e588f
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1998-11-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (panel_icon_list_select_icon): Use gpopup_do_popup().
(panel_file_list_select_row): Use gpopup_do_popup().
1998-11-29 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (display_mini_info): Use g_strdup_printf() to make it

View File

@ -130,6 +130,9 @@ popup_open (GtkWidget *widget, gpointer data)
return;
}
do_enter (pfi->panel);
#if 0
if (S_ISDIR (s.st_mode)) {
/* Open the directory in the panel the menu was activated from */
@ -141,6 +144,7 @@ popup_open (GtkWidget *widget, gpointer data)
} else {
/* FIXME: get default program and launch it with this file */
}
#endif
}
static void

View File

@ -30,6 +30,7 @@
#include "gdnd.h"
#include "gtree.h"
#include "gpageprop.h"
#include "gpopup.h"
#include "gcliplabel.h"
#include "gblist.h"
#include "../vfs/vfs.h"
@ -834,7 +835,12 @@ panel_file_list_select_row (GtkWidget *file_list, int row, int column, GdkEvent
break;
case 3:
#if 1
file_popup (&event->button, panel, NULL, row, panel->dir.list[row].fname);
#else
/* FIXME: this should happen on button press, not button release */
gpopup_do_popup (panel->dir.list[row].fname, panel, (GdkEventButton *) event);
#endif
break;
}
@ -1464,8 +1470,12 @@ panel_icon_list_select_icon (GtkWidget *widget, int index, GdkEvent *event, WPan
switch (event->type){
case GDK_BUTTON_PRESS:
if (event->button.button == 3){
if (event->button.button == 3) {
#if 1
file_popup (&event->button, panel, NULL, index, panel->dir.list [index].fname);
#else
gpopup_do_popup (panel->dir.list[index].fname, panel, (GdkEventButton *) event);
#endif
return;
}
break;