* gdesktop-prefs.c (create_mini_icons): Warning fix.
* gdialogs.c (file_mask_dialog): Likewise. * gdnd.c (gdnd_validate_action): Likewise. * gscreen.c (panel_drag_data_delete): Likewise. (panel_tree_check_auto_expand): Likewise.
Этот коммит содержится в:
родитель
62ef1f47bd
Коммит
78ab72b19f
@ -1,3 +1,11 @@
|
|||||||
|
2001-07-09 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* gdesktop-prefs.c (create_mini_icons): Warning fix.
|
||||||
|
* gdialogs.c (file_mask_dialog): Likewise.
|
||||||
|
* gdnd.c (gdnd_validate_action): Likewise.
|
||||||
|
* gscreen.c (panel_drag_data_delete): Likewise.
|
||||||
|
(panel_tree_check_auto_expand): Likewise.
|
||||||
|
|
||||||
2001-07-06 Pavel Roskin <proski@gnu.org>
|
2001-07-06 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* Makefile.in: Move here gnome-specific definitions from
|
* Makefile.in: Move here gnome-specific definitions from
|
||||||
|
@ -116,10 +116,8 @@ create_mini_icons (GDesktopPrefs *dp, int r2l, int b2t, int rows)
|
|||||||
dy = ICON_POS_INTERVAL;
|
dy = ICON_POS_INTERVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dp->rows_not_columns)
|
x = ox;
|
||||||
y = oy;
|
y = oy;
|
||||||
else
|
|
||||||
x = ox;
|
|
||||||
|
|
||||||
for (i = 0; i < 2; i++) {
|
for (i = 0; i < 2; i++) {
|
||||||
if (dp->rows_not_columns) {
|
if (dp->rows_not_columns) {
|
||||||
|
@ -564,12 +564,19 @@ file_mask_dialog (FileOpContext *ctx, FileOperation operation, char *text, char
|
|||||||
ctx->stable_symlinks = 0;
|
ctx->stable_symlinks = 0;
|
||||||
|
|
||||||
/* Basic window */
|
/* Basic window */
|
||||||
if (operation == OP_COPY)
|
switch (operation) {
|
||||||
|
case OP_COPY:
|
||||||
fmd_win = gnome_dialog_new (_("Copy"), GNOME_STOCK_BUTTON_OK,
|
fmd_win = gnome_dialog_new (_("Copy"), GNOME_STOCK_BUTTON_OK,
|
||||||
GNOME_STOCK_BUTTON_CANCEL, NULL);
|
GNOME_STOCK_BUTTON_CANCEL, NULL);
|
||||||
else if (operation == OP_MOVE)
|
break;
|
||||||
|
case OP_MOVE:
|
||||||
fmd_win = gnome_dialog_new (_("Move"), GNOME_STOCK_BUTTON_OK,
|
fmd_win = gnome_dialog_new (_("Move"), GNOME_STOCK_BUTTON_OK,
|
||||||
GNOME_STOCK_BUTTON_CANCEL, NULL);
|
GNOME_STOCK_BUTTON_CANCEL, NULL);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
g_assert_not_reached ();
|
||||||
|
return NULL; /* keep -Wall happy */
|
||||||
|
}
|
||||||
|
|
||||||
gtk_window_set_position (GTK_WINDOW (fmd_win), GTK_WIN_POS_MOUSE);
|
gtk_window_set_position (GTK_WINDOW (fmd_win), GTK_WIN_POS_MOUSE);
|
||||||
|
|
||||||
|
@ -534,8 +534,8 @@ gdnd_validate_action (GdkDragContext *context,
|
|||||||
int on_desktop, int same_process, int same_source,
|
int on_desktop, int same_process, int same_source,
|
||||||
char *dest_full_name, file_entry *dest_fe, int dest_selected)
|
char *dest_full_name, file_entry *dest_fe, int dest_selected)
|
||||||
{
|
{
|
||||||
int on_directory;
|
int on_directory = 0;
|
||||||
int on_exe;
|
int on_exe = 0;
|
||||||
|
|
||||||
g_return_val_if_fail (context != NULL, 0);
|
g_return_val_if_fail (context != NULL, 0);
|
||||||
g_return_val_if_fail (dest_full_name != NULL, 0);
|
g_return_val_if_fail (dest_full_name != NULL, 0);
|
||||||
|
@ -696,10 +696,10 @@ panel_drag_data_delete (GtkWidget *widget, GdkDragContext *context, WPanel *pane
|
|||||||
static void
|
static void
|
||||||
drop_on_panel (WPanel *panel, int idx, GdkDragContext *context, GtkSelectionData *selection_data)
|
drop_on_panel (WPanel *panel, int idx, GdkDragContext *context, GtkSelectionData *selection_data)
|
||||||
{
|
{
|
||||||
char *file;
|
|
||||||
file_entry *fe;
|
|
||||||
int drop_on_dir;
|
int drop_on_dir;
|
||||||
int reload;
|
int reload;
|
||||||
|
char *file = NULL;
|
||||||
|
file_entry *fe = NULL;
|
||||||
|
|
||||||
g_assert (panel != NULL);
|
g_assert (panel != NULL);
|
||||||
g_assert (idx == -1 || idx < panel->count);
|
g_assert (idx == -1 || idx < panel->count);
|
||||||
@ -1853,7 +1853,6 @@ panel_tree_check_auto_expand (WPanel *panel, GtkCTreeNode *current)
|
|||||||
GtkCList *clist;
|
GtkCList *clist;
|
||||||
GList *free_list;
|
GList *free_list;
|
||||||
GList *tmp_list;
|
GList *tmp_list;
|
||||||
gint row, old_y, new_y;
|
|
||||||
|
|
||||||
dtree = GTK_DTREE (panel->tree);
|
dtree = GTK_DTREE (panel->tree);
|
||||||
ctree = GTK_CTREE (panel->tree);
|
ctree = GTK_CTREE (panel->tree);
|
||||||
@ -1869,6 +1868,8 @@ panel_tree_check_auto_expand (WPanel *panel, GtkCTreeNode *current)
|
|||||||
* "current" stays the same place on the screen.
|
* "current" stays the same place on the screen.
|
||||||
*/
|
*/
|
||||||
if (tmp_list) {
|
if (tmp_list) {
|
||||||
|
gint row, new_y;
|
||||||
|
gint old_y = 0;
|
||||||
if (current) {
|
if (current) {
|
||||||
row = g_list_position (clist->row_list, (GList *) current);
|
row = g_list_position (clist->row_list, (GList *) current);
|
||||||
old_y = row * clist->row_height - clist->vadjustment->value;
|
old_y = row * clist->row_height - clist->vadjustment->value;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user