Kaydet (Commit) 9466361c authored tarafından Enrico Tröger's avatar Enrico Tröger

removed unnecessary callback functions for delete_event's, fixed bug when using…

removed unnecessary callback functions for delete_event's, fixed bug when using color selector and no file is open, only fixed on some other actions


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@214 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 77d7a814
......@@ -940,14 +940,6 @@ on_font_ok_button_clicked (GtkButton *button,
}
void
on_font_cancel_button_clicked (GtkButton *button,
gpointer user_data)
{
gtk_widget_hide(app->open_fontsel);
}
void
on_font_apply_button_clicked (GtkButton *button,
gpointer user_data)
......@@ -960,19 +952,25 @@ on_font_apply_button_clicked (GtkButton *button,
}
gboolean
on_fontselectiondialog1_delete_event (GtkWidget *widget,
GdkEvent *event,
void
on_font_cancel_button_clicked (GtkButton *button,
gpointer user_data)
{
gtk_widget_hide(app->open_fontsel);
return TRUE;
}
/*
* color dialog callbacks
*/
void
on_color_cancel_button_clicked (GtkButton *button,
gpointer user_data)
{
gtk_widget_hide(app->open_colorsel);
}
void
on_color_ok_button_clicked (GtkButton *button,
gpointer user_data)
......@@ -993,24 +991,6 @@ on_color_ok_button_clicked (GtkButton *button,
}
void
on_color_cancel_button_clicked (GtkButton *button,
gpointer user_data)
{
gtk_widget_hide(app->open_colorsel);
}
gboolean
on_color_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data)
{
gtk_widget_hide(app->open_colorsel);
return TRUE;
}
gboolean
on_window_configure_event (GtkWidget *widget,
GdkEventConfigure *event,
......
......@@ -117,9 +117,8 @@ void
on_color_cancel_button_clicked (GtkButton *button,
gpointer user_data);
gboolean
on_color_delete_event (GtkWidget *widget,
GdkEvent *event,
void
on_font_cancel_button_clicked (GtkButton *button,
gpointer user_data);
void
......@@ -134,19 +133,10 @@ void
on_font_ok_button_clicked (GtkButton *button,
gpointer user_data);
void
on_font_cancel_button_clicked (GtkButton *button,
gpointer user_data);
void
on_font_apply_button_clicked (GtkButton *button,
gpointer user_data);
gboolean
on_fontselectiondialog1_delete_event (GtkWidget *widget,
GdkEvent *event,
gpointer user_data);
gboolean
on_close_all1_activate (GtkMenuItem *menuitem,
gpointer user_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment