[metacity] ui.[c/h]: remove unused function
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] ui.[c/h]: remove unused function
- Date: Tue, 3 Jun 2014 12:25:43 +0000 (UTC)
commit 54244b4b60016612270de42c00836ec5f90f262b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Jun 3 15:19:12 2014 +0300
ui.[c/h]: remove unused function
src/include/ui.h | 2 --
src/ui/ui.c | 28 ----------------------------
2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/include/ui.h b/src/include/ui.h
index e15ade5..c1ada1f 100644
--- a/src/include/ui.h
+++ b/src/include/ui.h
@@ -206,8 +206,6 @@ int meta_ui_get_drag_threshold (MetaUI *ui);
MetaUIDirection meta_ui_get_direction (void);
-GdkPixbuf *meta_ui_get_pixbuf_from_pixmap (Pixmap pmap);
-
#include "tabpopup.h"
#endif
diff --git a/src/ui/ui.c b/src/ui/ui.c
index d2b2f90..8a756d5 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -1158,31 +1158,3 @@ meta_ui_get_direction (void)
return META_UI_DIRECTION_LTR;
}
-
-GdkPixbuf *
-meta_ui_get_pixbuf_from_pixmap (Pixmap pmap)
-{
- GdkPixmap *gpmap;
- GdkScreen *screen;
- GdkPixbuf *pixbuf;
- GdkColormap *cmap;
- int width, height, depth;
-
- gpmap = gdk_pixmap_foreign_new (pmap);
- screen = gdk_drawable_get_screen (gpmap);
-
- gdk_drawable_get_size (GDK_DRAWABLE (gpmap), &width, &height);
-
- depth = gdk_drawable_get_depth (GDK_DRAWABLE (gpmap));
- if (depth <= 24)
- cmap = gdk_screen_get_system_colormap (screen);
- else
- cmap = gdk_screen_get_rgba_colormap (screen);
-
- pixbuf = gdk_pixbuf_get_from_drawable (NULL, gpmap, cmap, 0, 0, 0, 0,
- width, height);
-
- g_object_unref (gpmap);
-
- return pixbuf;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]