Avoid another couple of warnings
This commit is contained in:
parent
1c2ed7e614
commit
719f1a3e00
@ -36,7 +36,7 @@ static char const * _authors[] =
|
|||||||
|
|
||||||
/* public */
|
/* public */
|
||||||
/* functions */
|
/* functions */
|
||||||
gboolean on_closex(GtkWidget * widget, GdkEvent * event, gpointer data)
|
gboolean on_closex(gpointer data)
|
||||||
{
|
{
|
||||||
Editor * editor = data;
|
Editor * editor = data;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* functions */
|
/* functions */
|
||||||
gboolean on_closex(GtkWidget * widget, GdkEvent * event, gpointer data);
|
gboolean on_closex(gpointer data);
|
||||||
void on_edit_find(gpointer data);
|
void on_edit_find(gpointer data);
|
||||||
void on_edit_preferences(gpointer data);
|
void on_edit_preferences(gpointer data);
|
||||||
void on_file_close(gpointer data);
|
void on_file_close(gpointer data);
|
||||||
|
@ -148,8 +148,8 @@ Editor * editor_new(void)
|
|||||||
#if GTK_CHECK_VERSION(2, 6, 0)
|
#if GTK_CHECK_VERSION(2, 6, 0)
|
||||||
gtk_window_set_icon_name(GTK_WINDOW(editor->window), "text-editor");
|
gtk_window_set_icon_name(GTK_WINDOW(editor->window), "text-editor");
|
||||||
#endif
|
#endif
|
||||||
g_signal_connect(G_OBJECT(editor->window), "delete-event", G_CALLBACK(
|
g_signal_connect_swapped(G_OBJECT(editor->window), "delete-event",
|
||||||
on_closex), editor);
|
G_CALLBACK(on_closex), editor);
|
||||||
vbox = gtk_vbox_new(FALSE, 0);
|
vbox = gtk_vbox_new(FALSE, 0);
|
||||||
/* menubar */
|
/* menubar */
|
||||||
#ifndef EMBEDDED
|
#ifndef EMBEDDED
|
||||||
|
Loading…
Reference in New Issue
Block a user