get rid of deprecated gdk_rgb_gc_set_foreground usage in favor of

Wed Nov 13 21:45:36 2002  Manish Singh  <yosh@gimp.org>

        * gtk/gtkhsv.c: get rid of deprecated gdk_rgb_gc_set_foreground
        usage in favor of gdk_gc_set_rgb_fg_color.
This commit is contained in:
Manish Singh 2002-11-14 05:52:10 +00:00 committed by Manish Singh
parent c26787be57
commit 2844bd6f4d
7 changed files with 55 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Wed Nov 13 21:45:36 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkhsv.c: get rid of deprecated gdk_rgb_gc_set_foreground
usage in favor of gdk_gc_set_rgb_fg_color.
Thu Nov 14 00:33:26 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (attach_widget_screen_changed): Monitor

View File

@ -1,3 +1,8 @@
Wed Nov 13 21:45:36 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkhsv.c: get rid of deprecated gdk_rgb_gc_set_foreground
usage in favor of gdk_gc_set_rgb_fg_color.
Thu Nov 14 00:33:26 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (attach_widget_screen_changed): Monitor

View File

@ -1,3 +1,8 @@
Wed Nov 13 21:45:36 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkhsv.c: get rid of deprecated gdk_rgb_gc_set_foreground
usage in favor of gdk_gc_set_rgb_fg_color.
Thu Nov 14 00:33:26 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (attach_widget_screen_changed): Monitor

View File

@ -1,3 +1,8 @@
Wed Nov 13 21:45:36 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkhsv.c: get rid of deprecated gdk_rgb_gc_set_foreground
usage in favor of gdk_gc_set_rgb_fg_color.
Thu Nov 14 00:33:26 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (attach_widget_screen_changed): Monitor

View File

@ -1,3 +1,8 @@
Wed Nov 13 21:45:36 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkhsv.c: get rid of deprecated gdk_rgb_gc_set_foreground
usage in favor of gdk_gc_set_rgb_fg_color.
Thu Nov 14 00:33:26 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (attach_widget_screen_changed): Monitor

View File

@ -1,3 +1,8 @@
Wed Nov 13 21:45:36 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkhsv.c: get rid of deprecated gdk_rgb_gc_set_foreground
usage in favor of gdk_gc_set_rgb_fg_color.
Thu Nov 14 00:33:26 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (attach_widget_screen_changed): Monitor

View File

@ -1029,9 +1029,19 @@ paint_ring (GtkHSV *hsv,
hsv_to_rgb (&r, &g, &b);
if (INTENSITY (r, g, b) > 0.5)
gdk_rgb_gc_set_foreground (priv->gc, 0x000000);
{
color.red = 0x0000;
color.green = 0x0000;
color.blue = 0x0000;
}
else
gdk_rgb_gc_set_foreground (priv->gc, 0xffffff);
{
color.red = 0xffff;
color.green = 0xffff;
color.blue = 0xffff;
}
gdk_gc_set_rgb_fg_color (priv->gc, &color);
gdk_draw_line (drawable, priv->gc,
-x + center, -y + center,
@ -1284,11 +1294,21 @@ paint_triangle (GtkHSV *hsv,
g = priv->s;
b = priv->v;
hsv_to_rgb (&r, &g, &b);
if (INTENSITY (r, g, b) > 0.5)
gdk_rgb_gc_set_foreground (priv->gc, 0x000000);
{
color.red = 0x0000;
color.green = 0x0000;
color.blue = 0x0000;
}
else
gdk_rgb_gc_set_foreground (priv->gc, 0xffffff);
{
color.red = 0xffff;
color.green = 0xffff;
color.blue = 0xffff;
}
gdk_gc_set_rgb_fg_color (priv->gc, &color);
#define OUTER_RADIUS 4
#define INNER_RADIUS 3