1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gscreen.c (x_select_item): It is not necessary to call gnome_canvas_update_now() here. * gdesktop-icon.c (set_icon): Do not destroy the icon image. * gnome-file-property-dialog.c (gnome_file_property_dialog_finalize): Do not destroy the icon image, since it is a shared resource.
Этот коммит содержится в:
родитель
b541e637c5
Коммит
d1b80d6f09
@ -1,3 +1,14 @@
|
||||
1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gscreen.c (x_select_item): It is not necessary to call
|
||||
gnome_canvas_update_now() here.
|
||||
|
||||
* gdesktop-icon.c (set_icon): Do not destroy the icon image.
|
||||
|
||||
* gnome-file-property-dialog.c
|
||||
(gnome_file_property_dialog_finalize): Do not destroy the icon
|
||||
image, since it is a shared resource.
|
||||
|
||||
1999-03-14 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdesktop.c (text_changed): If the file has the "icon-caption"
|
||||
|
@ -185,24 +185,11 @@ desktop_icon_realize (GtkWidget *widget)
|
||||
static void
|
||||
set_icon (DesktopIcon *dicon, GdkImlibImage *im)
|
||||
{
|
||||
GdkImlibImage *old_im;
|
||||
GtkArg arg;
|
||||
|
||||
/* Destroy the old image if it exists */
|
||||
|
||||
arg.name = "image";
|
||||
gtk_object_getv (GTK_OBJECT (dicon->icon), 1, &arg);
|
||||
|
||||
old_im = GTK_VALUE_POINTER (arg);
|
||||
|
||||
gnome_canvas_item_set (dicon->icon,
|
||||
"image", im,
|
||||
"width", (double) im->rgb_width,
|
||||
"height", (double) im->rgb_height,
|
||||
NULL);
|
||||
|
||||
if (old_im != im)
|
||||
gdk_imlib_destroy_image (old_im);
|
||||
}
|
||||
|
||||
/* Sets the text in the desktop icon, but does not re-create its window shape. */
|
||||
|
@ -113,8 +113,6 @@ gnome_file_property_dialog_finalize (GtkObject *object)
|
||||
|
||||
if (gfpd->file_name)
|
||||
g_free (gfpd->file_name);
|
||||
if (gfpd->im)
|
||||
gdk_imlib_destroy_image (gfpd->im);
|
||||
if (gfpd->fm_open)
|
||||
g_free (gfpd->fm_open);
|
||||
if (gfpd->fm_view)
|
||||
|
@ -321,7 +321,6 @@ x_select_item (WPanel *panel)
|
||||
if (gnome_icon_list_icon_is_visible (list, panel->selected) != GTK_VISIBILITY_FULL)
|
||||
gnome_icon_list_moveto (list, panel->selected, 0.5);
|
||||
}
|
||||
gnome_canvas_update_now (GNOME_CANVAS (list));
|
||||
} else {
|
||||
GtkCList *clist = CLIST_FROM_SW (panel->list);
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user