[MPlayer-cvslog] r36150 - trunk/gui/dialog/url.c

ib subversion at mplayerhq.hu
Thu Apr 4 15:21:51 CEST 2013


Author: ib
Date: Thu Apr  4 15:21:51 2013
New Revision: 36150

Log:
Avoid casts by passing an existing pointer.

Modified:
   trunk/gui/dialog/url.c

Modified: trunk/gui/dialog/url.c
==============================================================================
--- trunk/gui/dialog/url.c	Thu Apr  4 14:10:14 2013	(r36149)
+++ trunk/gui/dialog/url.c	Thu Apr  4 15:21:51 2013	(r36150)
@@ -45,7 +45,7 @@ static void button_clicked(GtkButton *bu
 
     (void)button;
 
-    if ((int)user_data) {
+    if (user_data) {
         gchar *str = strdup(gtk_entry_get_text(GTK_ENTRY(urlEntry)));
 
         if (str) {
@@ -122,7 +122,7 @@ static GtkWidget *CreateURLDialog(void)
     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(button_clicked), (void *)1);
+    gtk_signal_connect(GTK_OBJECT(Ok), "clicked", GTK_SIGNAL_FUNC(button_clicked), Ok);
     gtk_signal_connect(GTK_OBJECT(Cancel), "clicked", GTK_SIGNAL_FUNC(button_clicked), NULL);
 
     gtk_widget_grab_focus(urlEntry);


More information about the MPlayer-cvslog mailing list