mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
1998-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmain.c (xtoolkit_init): Changed gnome_init() to new version. (xtoolkit_init): Call gnome_init() properly. Also, return 0.
This commit is contained in:
parent
8ba83a3921
commit
768e9596b4
@ -1,3 +1,8 @@
|
||||
1998-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gmain.c (xtoolkit_init): Changed gnome_init() to new version.
|
||||
(xtoolkit_init): Call gnome_init() properly. Also, return 0.
|
||||
|
||||
Sat Mar 7 15:24:49 1998 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gwidget.c (entry_click): Focus the entry on clicks.
|
||||
|
@ -28,7 +28,9 @@ GdkColorContext *mc_cc;
|
||||
struct gmc_color_pairs_s gmc_color_pairs [MAX_COLOR_PAIRS];
|
||||
|
||||
char *default_edition_colors =
|
||||
"normal=black,white:"
|
||||
"directory=blue:"
|
||||
"marked=white,blue:"
|
||||
"execute=green:"
|
||||
"link=yellow:"
|
||||
"device=magenta:"
|
||||
@ -73,8 +75,10 @@ xtoolkit_init (int *argc, char *argv [])
|
||||
{
|
||||
LINES = 40;
|
||||
COLS = 80;
|
||||
gnome_init ("gmc", argc, &argv);
|
||||
gnome_init ("gmc", NULL, *argc, argv, 0, NULL);
|
||||
gmc_color_init ();
|
||||
/* FIXME: Maybe this should return something from gnome_init() */
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -76,10 +76,27 @@ panel_file_list_set_type_bitmap (GtkCList *cl, int row, int column, int color, f
|
||||
static void
|
||||
panel_file_list_set_row_colors (GtkCList *cl, int row, int color_pair)
|
||||
{
|
||||
GtkCListRow *row;
|
||||
|
||||
row = 0;
|
||||
|
||||
if (gmc_color_pairs [color_pair].fore)
|
||||
gtk_clist_set_foreground (cl, row, gmc_color_pairs [color_pair].fore);
|
||||
else {
|
||||
/* ARREGLAME GUEY */
|
||||
row = g_list_nth (cl->rows, row);
|
||||
row->fg_set = 0;
|
||||
}
|
||||
|
||||
if (gmc_color_pairs [color_pair].back)
|
||||
gtk_clist_set_background (cl, row, gmc_color_pairs [color_pair].back);
|
||||
else {
|
||||
if (!row)
|
||||
row = g_list_nth (cl->rows, row);
|
||||
|
||||
row->bg_set = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
@ -157,7 +174,8 @@ x_panel_set_size (int index)
|
||||
void
|
||||
x_panel_select_item (WPanel *panel, int index, int value)
|
||||
{
|
||||
/* Not required */
|
||||
printf ("x_panel_select_item: value = %d\n", value);
|
||||
panel_file_list_set_row_colors (GTK_CLIST (panel->list), index, MARKED_COLOR);
|
||||
}
|
||||
|
||||
void
|
||||
@ -453,13 +471,25 @@ panel_file_list_select_row (GtkWidget *file_list, int row, int column, GdkEvent
|
||||
case GDK_BUTTON_PRESS:
|
||||
internal_select_item (file_list, panel, row);
|
||||
|
||||
if (event->button.button == 3)
|
||||
switch (event->button.button) {
|
||||
case 2:
|
||||
printf("Llamando a do_file_mark()\n");
|
||||
do_file_mark (panel, row, !panel->dir.list[row].f.marked);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
file_popup (event, panel, panel->dir.list[row].fname);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case GDK_2BUTTON_PRESS:
|
||||
do_enter (panel);
|
||||
if (event->button.button == 1)
|
||||
do_enter (panel);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user