pan-view.c: In function ‘pan_grid_build’:
pan-view.c:753:14: attention : variable ‘ah’ set but not used [-Wunused-but-set-variable]
pan-view.c:753:10: attention : variable ‘aw’ set but not used [-Wunused-but-set-variable]
pan-view.c: In function ‘pan_window_key_press_cb’:
pan-view.c:1217:2: attention : suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
pan-view.c:1271:8: attention : variable ‘n’ set but not used [-Wunused-but-set-variable]
pan-view.c: In function ‘pan_window_set_dnd_data’:
pan-view.c:2939:8: attention : unused variable ‘len’ [-Wunused-variable]
pan-view.c:2938:10: attention : unused variable ‘text’ [-Wunused-variable]
gint col, row;
gint cw, ch;
gint l;
gint col, row;
gint cw, ch;
gint l;
- gdouble total;
- gdouble s;
- gdouble aw, ah;
gint i, j;
pan_grid_clear(pw);
gint i, j;
pan_grid_clear(pw);
- total = (gdouble)width * (gdouble)height / (gdouble)l;
- s = sqrt(total);
-
- aw = (gdouble)width / s;
- ah = (gdouble)height / s;
-
col = (gint)(sqrt((gdouble)l / grid_size) * width / height + 0.999);
col = CLAMP(col, 1, l / grid_size + 1);
row = (gint)((gdouble)l / grid_size / col);
col = (gint)(sqrt((gdouble)l / grid_size) * width / height + 0.999);
col = CLAMP(col, 1, l / grid_size + 1);
row = (gint)((gdouble)l / grid_size / col);
fd = pan_menu_click_fd(pw);
imd_widget = gtk_container_get_focus_child(GTK_CONTAINER(pw->imd->widget));
fd = pan_menu_click_fd(pw);
imd_widget = gtk_container_get_focus_child(GTK_CONTAINER(pw->imd->widget));
- focused = (pw->fs || imd_widget && gtk_widget_has_focus(imd_widget));
+ focused = (pw->fs || (imd_widget && gtk_widget_has_focus(imd_widget)));
on_entry = (gtk_widget_has_focus(pw->path_entry) ||
gtk_widget_has_focus(pw->search_entry));
on_entry = (gtk_widget_has_focus(pw->path_entry) ||
gtk_widget_has_focus(pw->search_entry));
if (event->state & GDK_CONTROL_MASK)
{
if (event->state & GDK_CONTROL_MASK)
{
stop_signal = TRUE;
switch (event->keyval)
{
case '1':
stop_signal = TRUE;
switch (event->keyval)
{
case '1':
break;
case 'C': case 'c':
if (fd) file_util_copy(fd, NULL, NULL, GTK_WIDGET(pr));
break;
case 'C': case 'c':
if (fd) file_util_copy(fd, NULL, NULL, GTK_WIDGET(pr));
fd = pan_menu_click_fd(pw);
if (fd)
{
fd = pan_menu_click_fd(pw);
if (fd)
{
- gchar *text = NULL;
- gint len;
GList *list;
list = g_list_append(NULL, fd);
GList *list;
list = g_list_append(NULL, fd);