Mercurial > mplayer.hg
changeset 36050:968e936dc898
Cosmetic: Rename signal handler function.
Consistently either use <widget name>_<signal> or <widget type>_<signal>
if it's used for more than one widget.
author | ib |
---|---|
date | Thu, 04 Apr 2013 09:41:25 +0000 |
parents | 31f6a88593b3 |
children | aebe956868d9 |
files | gui/dialog/url.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/dialog/url.c Thu Apr 04 09:39:03 2013 +0000 +++ b/gui/dialog/url.c Thu Apr 04 09:41:25 2013 +0000 @@ -38,7 +38,7 @@ static GtkWidget *urlEntry; static GList *urlEntries; -static void on_Button_pressed(GtkButton *button, gpointer user_data) +static void button_clicked(GtkButton *button, gpointer user_data) { urlItem *item; @@ -125,8 +125,8 @@ gtk_widget_add_accelerator(Cancel, "clicked", accel_group, GDK_Escape, 0, GTK_ACCEL_VISIBLE); gtk_signal_connect(GTK_OBJECT(URLDialog), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), &URLDialog); - gtk_signal_connect(GTK_OBJECT(Ok), "clicked", GTK_SIGNAL_FUNC(on_Button_pressed), (void *)1); - gtk_signal_connect(GTK_OBJECT(Cancel), "clicked", GTK_SIGNAL_FUNC(on_Button_pressed), NULL); + gtk_signal_connect(GTK_OBJECT(Ok), "clicked", GTK_SIGNAL_FUNC(button_clicked), (void *)1); + gtk_signal_connect(GTK_OBJECT(Cancel), "clicked", GTK_SIGNAL_FUNC(button_clicked), NULL); gtk_widget_grab_focus(urlEntry); gtk_window_add_accel_group(GTK_WINDOW(URLDialog), accel_group);