~ubuntu-branches/ubuntu/maverick/conglomerate/maverick

« back to all changes in this revision

Viewing changes to src/cong-eel.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 05:07:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108050706-bcg60nwqf1z3w0d6
Tags: 0.9.1-1ubuntu1
* Resynchronise with Debian (Closes: #4397).
  - Thanks, Jordan Mantha.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
        g_assert (result);
101
101
}
102
102
 
 
103
/**
 
104
 * cong_eel_rgb_to_gdk_color2:
 
105
 * @r:
 
106
 * @g:
 
107
 * @b:
 
108
 *
 
109
 * TODO: Write me
 
110
 */
 
111
GdkColor*
 
112
cong_eel_rgb_to_gdk_color2 (guchar               r,
 
113
                            guchar               g,
 
114
                            guchar               b)
 
115
{
 
116
        gboolean result;
 
117
        GdkColor color;
 
118
 
 
119
        color.red = (r<<8);
 
120
        color.green = (g<<8);
 
121
        color.blue = (b<<8);
 
122
 
 
123
        result = gdk_colormap_alloc_color (cong_gui_get_a_window()->style->colormap, 
 
124
                                           &color, 
 
125
                                           FALSE, 
 
126
                                           TRUE);
 
127
        g_assert (result);
 
128
        
 
129
        return gdk_color_copy (&color);
 
130
}
103
131
 
104
132
/**
105
133
 * cong_eel_rectangle_contains: