mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
c26787be57
commit
2844bd6f4d
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
30
gtk/gtkhsv.c
30
gtk/gtkhsv.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user