]> git.saurik.com Git - wxWidgets.git/commitdiff
remove some unnecessary casts
authorPaul Cornett <paulcor@bullseye.com>
Tue, 2 Oct 2012 16:19:33 +0000 (16:19 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 2 Oct 2012 16:19:33 +0000 (16:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/assertdlg_gtk.cpp
src/gtk/dataview.cpp
src/gtk/dirdlg.cpp
src/gtk/spinctrl.cpp

index 0ed3a239bde3db2d71ce260f2097d3199cb8a431..bdcd83c0863a54bfa88e666e15d94d7f013fd5a4 100644 (file)
@@ -298,7 +298,7 @@ static void gtk_assert_dialog_init(GtkAssertDialog* dlg)
         /* add the expander */
         dlg->expander = gtk_expander_new_with_mnemonic ("Back_trace:");
         gtk_box_pack_start (GTK_BOX(vbox), dlg->expander, TRUE, TRUE, 0);
-        g_signal_connect (GTK_EXPANDER(dlg->expander), "activate",
+        g_signal_connect (dlg->expander, "activate",
                             G_CALLBACK(gtk_assert_dialog_expander_callback), dlg);
     }
 
index 625f4bd28e2bfdebadfd592fb9b6a13f9178e883..cf97ded4196ab144da10c7892b663bd08fbc389a 100644 (file)
@@ -1810,7 +1810,7 @@ wxgtk_renderer_editing_started( GtkCellRenderer *WXUNUSED(cell), GtkCellEditable
     {
         s_user_data = item.GetID();
 
-        g_signal_connect (GTK_CELL_EDITABLE (editable), "editing_done",
+        g_signal_connect (editable, "editing_done",
             G_CALLBACK (wxgtk_cell_editable_editing_done),
             (gpointer) wxrenderer );
 
@@ -1842,7 +1842,7 @@ void wxDataViewRenderer::GtkPackIntoColumn(GtkTreeViewColumn *column)
 void wxDataViewRenderer::GtkInitHandlers()
 {
     {
-        g_signal_connect (GTK_CELL_RENDERER(m_renderer), "editing_started",
+        g_signal_connect (m_renderer, "editing_started",
             G_CALLBACK (wxgtk_renderer_editing_started),
             this);
     }
index a877cbabfe792bba816c8d49cdce2972837cb80d..df9bdef8e2ed243da7b323d1f6636c35b5e3d281 100644 (file)
@@ -140,7 +140,7 @@ bool wxDirDialog::Create(wxWindow* parent,
     // gtk_widget_hide_on_delete is used here to avoid that Gtk automatically destroys
     // the dialog when the user press ESC on the dialog: in that case a second call to
     // ShowModal() would result in a bunch of Gtk-CRITICAL errors...
-    g_signal_connect (G_OBJECT(m_widget),
+    g_signal_connect (m_widget,
                     "delete_event",
                     G_CALLBACK (gtk_widget_hide_on_delete),
                     (gpointer)this);
index e28cc7a686f895d41983b86813b965136e9244b4..aed0313357efabedf4b38c0cd26c892cb54a4add 100644 (file)
@@ -413,17 +413,17 @@ bool wxSpinCtrl::SetBase(int base)
 
     if ( m_base != 10 )
     {
-        g_signal_connect( GTK_SPIN_BUTTON(m_widget), "input",
+        g_signal_connect( m_widget, "input",
                               G_CALLBACK(wx_gtk_spin_input), this);
-        g_signal_connect( GTK_SPIN_BUTTON(m_widget), "output",
+        g_signal_connect( m_widget, "output",
                               G_CALLBACK(wx_gtk_spin_output), this);
     }
     else
     {
-        g_signal_handlers_disconnect_by_func(GTK_SPIN_BUTTON(m_widget),
+        g_signal_handlers_disconnect_by_func(m_widget,
                                              (gpointer)wx_gtk_spin_input,
                                              this);
-        g_signal_handlers_disconnect_by_func(GTK_SPIN_BUTTON(m_widget),
+        g_signal_handlers_disconnect_by_func(m_widget,
                                              (gpointer)wx_gtk_spin_output,
                                              this);
     }