Permalink
Browse files

- Fixed callbacks for preferences and breakpoint windows.

SVN Rev: 3286
  • Loading branch information...
1 parent 6588630 commit df857f32f78d4cd9c3667622a1ca0b257d56c64c @derickr committed May 23, 2010
Showing with 6 additions and 10 deletions.
  1. +6 −10 src/callbacks.c
View
@@ -11,9 +11,6 @@
#include "globals.h"
extern ClientState *client_state;
-extern GtkWidget* MainWindow;
-extern GtkWidget* DebuggerSettingsWindow;
-extern GtkWidget* AddBreakPointWindow;
void
on_quit_activate (GtkMenuItem *menuitem,
@@ -27,7 +24,7 @@ void
on_add_breakpoint_menu_item_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
- gtk_widget_show(AddBreakPointWindow);
+ gtk_widget_show(gtk_builder_get_object(builder, "AddBreakPointWindow"));
}
@@ -271,32 +268,31 @@ void
on_main_add_bp_button_activate (GtkButton *button,
gpointer user_data)
{
- AddBreakPointWindow = gtk_builder_get_object(builder, "AddBreakPointWindow");
- gtk_widget_show(AddBreakPointWindow);
+ gtk_widget_show(gtk_builder_get_object(builder, "AddBreakPointWindow"));
}
void
on_main_edit_bp_button_activate (GtkButton *button,
gpointer user_data)
{
- gtk_widget_show(AddBreakPointWindow);
+ gtk_widget_show(gtk_builder_get_object(builder, "AddBreakPointWindow"));
}
void
on_main_remove_bp_button_activate (GtkButton *button,
gpointer user_data)
{
- gtk_widget_show(AddBreakPointWindow);
+ gtk_widget_show(gtk_builder_get_object(builder, "AddBreakPointWindow"));
}
void
on_add_bp_cancel_button_activate (GtkButton *button,
gpointer user_data)
{
- gtk_widget_hide(AddBreakPointWindow);
+ gtk_widget_hide(gtk_builder_get_object(builder, "AddBreakPointWindow"));
}
@@ -366,6 +362,6 @@ on_add_bp_add_button_activate (GtkButton *button,
BREAKPOINT_HIT_VALUE_COLUMN, 0,
-1);
xdfree(display_string);
- gtk_widget_hide(AddBreakPointWindow);
+ gtk_widget_hide(gtk_builder_get_object(builder, "AddBreakPointWindow"));
}

0 comments on commit df857f3

Please sign in to comment.