mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
remove deprecated gtk stuff.
2006-11-05 Priit Laes <amd@store20.com> * src/main.c, src/ui.c: remove deprecated gtk stuff. 2006-11-05 Bruno Boaventura <brunoboaventura@gmail.com> * src/theme.c, src/testgradient.c: remove deprecated gtk stuff.
This commit is contained in:
parent
8722c60a28
commit
81256ebe48
@ -1,3 +1,11 @@
|
||||
2006-11-05 Priit Laes <amd@store20.com>
|
||||
|
||||
* src/main.c, src/ui.c: remove deprecated gtk stuff.
|
||||
|
||||
2006-11-05 Bruno Boaventura <brunoboaventura@gmail.com>
|
||||
|
||||
* src/theme.c, src/testgradient.c: remove deprecated gtk stuff.
|
||||
|
||||
2006-11-05 Kjartan Maraas <kmaraas@gnome.org>
|
||||
|
||||
* src/ui.c: use g_strdup to allocate a string, not strdup. Fixes
|
||||
|
@ -126,7 +126,7 @@ meta_print_self_identity (void)
|
||||
|
||||
/* Version and current date. */
|
||||
g_date_clear (&d, 1);
|
||||
g_date_set_time (&d, time (NULL));
|
||||
g_date_set_time_t (&d, time (NULL));
|
||||
g_date_strftime (buf, sizeof (buf), "%x", &d);
|
||||
meta_verbose ("Metacity version %s running on %s\n",
|
||||
VERSION, buf);
|
||||
@ -388,7 +388,7 @@ main (int argc, char **argv)
|
||||
if (!meta_display_open ())
|
||||
meta_exit (META_EXIT_ERROR);
|
||||
|
||||
g_main_run (meta_main_loop);
|
||||
g_main_loop_run (meta_main_loop);
|
||||
|
||||
{
|
||||
GSList *displays;
|
||||
@ -446,8 +446,8 @@ meta_quit (MetaExitCode code)
|
||||
{
|
||||
meta_exit_code = code;
|
||||
|
||||
if (g_main_is_running (meta_main_loop))
|
||||
g_main_quit (meta_main_loop);
|
||||
if (g_main_loop_is_running (meta_main_loop))
|
||||
g_main_loop_quit (meta_main_loop);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -131,9 +131,9 @@ render_simple (GdkDrawable *drawable,
|
||||
draw_checkerboard (drawable, width, height);
|
||||
}
|
||||
|
||||
gdk_pixbuf_render_to_drawable (pixbuf,
|
||||
drawable,
|
||||
gdk_draw_pixbuf (drawable,
|
||||
gc,
|
||||
pixbuf,
|
||||
0, 0,
|
||||
0, 0, width, height,
|
||||
GDK_RGB_DITHER_MAX,
|
||||
|
@ -2815,15 +2815,14 @@ render_pixbuf (GdkDrawable *drawable,
|
||||
draw_rect = pixbuf_rect;
|
||||
}
|
||||
|
||||
gdk_pixbuf_render_to_drawable_alpha (pixbuf,
|
||||
drawable,
|
||||
gdk_draw_pixbuf (drawable,
|
||||
NULL,
|
||||
pixbuf,
|
||||
draw_rect.x - pixbuf_rect.x,
|
||||
draw_rect.y - pixbuf_rect.y,
|
||||
draw_rect.x, draw_rect.y,
|
||||
draw_rect.width,
|
||||
draw_rect.height,
|
||||
GDK_PIXBUF_ALPHA_FULL, /* ignored */
|
||||
128, /* ignored */
|
||||
GDK_RGB_DITHER_NORMAL,
|
||||
draw_rect.x - pixbuf_rect.x,
|
||||
draw_rect.y - pixbuf_rect.y);
|
||||
|
Loading…
Reference in New Issue
Block a user