gnome-media r4041 - trunk/vu-meter
- From: kmaraas svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r4041 - trunk/vu-meter
- Date: Sat, 8 Nov 2008 11:39:33 +0000 (UTC)
Author: kmaraas
Date: Sat Nov 8 11:39:33 2008
New Revision: 4041
URL: http://svn.gnome.org/viewvc/gnome-media?rev=4041&view=rev
Log:
2008-09-18 Kjartan Maraas <kmaraas gnome org>
* gtkled.c: (gtk_led_init):
* main.c: (main):
Small cleanups.
Modified:
trunk/vu-meter/ChangeLog
trunk/vu-meter/gtkled.c
trunk/vu-meter/main.c
Modified: trunk/vu-meter/gtkled.c
==============================================================================
--- trunk/vu-meter/gtkled.c (original)
+++ trunk/vu-meter/gtkled.c Sat Nov 8 11:39:33 2008
@@ -78,7 +78,7 @@
led->width = LED_WIDTH;
led->height = LED_HEIGHT;
- g_signal_connect (GTK_OBJECT(led), "size-allocate", gtk_led_size_allocate, NULL);
+ g_signal_connect (G_OBJECT(led), "size-allocate", G_CALLBACK (gtk_led_size_allocate), NULL);
}
GtkWidget*
Modified: trunk/vu-meter/main.c
==============================================================================
--- trunk/vu-meter/main.c (original)
+++ trunk/vu-meter/main.c Sat Nov 8 11:39:33 2008
@@ -216,6 +216,7 @@
GOptionContext *goption_context;
GtkWidget *hbox;
GtkWidget *frame;
+ GnomeProgram *program;
vumeter *meter;
/*int time_id;*/
int i;
@@ -249,9 +250,9 @@
goption_context = g_option_context_new(NULL);
g_option_context_add_main_entries(goption_context, options, GETTEXT_PACKAGE);
- gnome_program_init ("vumeter", VERSION, LIBGNOMEUI_MODULE, argc, argv,
- GNOME_PARAM_GOPTION_CONTEXT, goption_context,
- NULL);
+ program = gnome_program_init ("vumeter", VERSION, LIBGNOMEUI_MODULE, argc, argv,
+ GNOME_PARAM_GOPTION_CONTEXT, goption_context,
+ NULL);
#ifdef DEBUG
if (esd_host) {
g_print (_("Host is %s\n"), esd_host);
@@ -333,6 +334,8 @@
/* time_id = gtk_timeout_add (50000, (GtkFunction)update_display, meter); */
gtk_main ();
+
+ g_object_unref (program);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]