summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2003-02-28 15:15:05 +0000
committerAlexander Larsson <alexl@src.gnome.org>2003-02-28 15:15:05 +0000
commit5e85711b8c5cf554708a489a7083b102324f1371 (patch)
tree0044bb86259c940cc7137fb9bf8b38de11fb2493 /components
parent48c4c00431dbcaecdf05552c390d6fe908e678b4 (diff)
downloadnautilus-5e85711b8c5cf554708a489a7083b102324f1371.tar.gz
Don't use deprecated APIs. Patch by iain <iain@prettypeople.org>
2003-02-28 Alexander Larsson <alexl@redhat.com> * components/throbber/nautilus-throbber.c: * libnautilus-private/nautilus-bonobo-extensions.c: * libnautilus-private/nautilus-directory-async.c: * libnautilus-private/nautilus-directory.c: * libnautilus-private/nautilus-dnd.c: * libnautilus-private/nautilus-drag-window.c: * libnautilus-private/nautilus-entry.c: * libnautilus-private/nautilus-file-operations-progress.c: * libnautilus-private/nautilus-icon-canvas-item.c: * libnautilus-private/nautilus-icon-container.c: * libnautilus-private/nautilus-metafile.c: * libnautilus-private/nautilus-tree-view-drag-dest.c: * libnautilus-private/nautilus-volume-monitor.c: * libnautilus/nautilus-idle-queue.c: * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-icon-view.c: * src/file-manager/fm-properties-window.c: * src/nautilus-bookmarks-window.c: * src/nautilus-location-bar.c: * src/nautilus-main.c: * src/nautilus-view-frame.c: * src/nautilus-window-menus.c: * src/nautilus-window.c: Don't use deprecated APIs. Patch by iain <iain@prettypeople.org>
Diffstat (limited to 'components')
-rw-r--r--components/throbber/nautilus-throbber.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/components/throbber/nautilus-throbber.c b/components/throbber/nautilus-throbber.c
index c0834cc30..cd963e504 100644
--- a/components/throbber/nautilus-throbber.c
+++ b/components/throbber/nautilus-throbber.c
@@ -284,7 +284,7 @@ nautilus_throbber_expose (GtkWidget *widget, GdkEventExpose *event)
GdkPixbuf *pixbuf;
int x_offset, y_offset, width, height;
GdkRectangle pix_area, dest;
-
+
g_return_val_if_fail (NAUTILUS_IS_THROBBER (widget), FALSE);
throbber = NAUTILUS_THROBBER (widget);
@@ -313,15 +313,12 @@ nautilus_throbber_expose (GtkWidget *widget, GdkEventExpose *event)
g_object_unref (pixbuf);
return FALSE;
}
-
- gdk_pixbuf_render_to_drawable_alpha (
- pixbuf, widget->window,
- dest.x - x_offset, dest.y - y_offset,
- dest.x, dest.y,
- dest.width, dest.height,
- GDK_PIXBUF_ALPHA_BILEVEL, 128,
- GDK_RGB_DITHER_MAX,
- 0, 0);
+
+ gdk_draw_pixbuf (widget->window, NULL, pixbuf,
+ dest.x - x_offset, dest.y - y_offset,
+ dest.x, dest.y,
+ dest.width, dest.height,
+ GDK_RGB_DITHER_MAX, 0, 0);
g_object_unref (pixbuf);
@@ -371,21 +368,21 @@ nautilus_throbber_start (NautilusThrobber *throbber)
}
if (throbber->details->timer_task != 0) {
- gtk_timeout_remove (throbber->details->timer_task);
+ g_source_remove (throbber->details->timer_task);
}
/* reset the frame count */
throbber->details->current_frame = 0;
- throbber->details->timer_task = gtk_timeout_add (throbber->details->delay,
- bump_throbber_frame,
- throbber);
+ throbber->details->timer_task = g_timeout_add (throbber->details->delay,
+ bump_throbber_frame,
+ throbber);
}
static void
nautilus_throbber_remove_update_callback (NautilusThrobber *throbber)
{
if (throbber->details->timer_task != 0) {
- gtk_timeout_remove (throbber->details->timer_task);
+ g_source_remove (throbber->details->timer_task);
}
throbber->details->timer_task = 0;