summaryrefslogtreecommitdiff
path: root/src/editor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-07-31 23:34:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-07-31 23:34:56 (GMT)
commitd02deb2425d6559c357bdd00e1c0fb05f35d5fc9 (patch)
tree1a78849aa7d51706856a6c6127f66b48c188d0fc /src/editor.c
parentfd2abec30a224279c62a7ab4892d95e56cb08dff (diff)
Processed disassembling in a dedicated thread.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@104 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/editor.c')
-rw-r--r--src/editor.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/editor.c b/src/editor.c
index 76c8181..6b088c5 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -44,6 +44,7 @@
#include "pan_strings.h"
#include "analysis/binary.h"
#include "gtkext/easygtk.h"
+#include "gtkext/gtkextstatusbar.h"
#include "gtkext/gtkbinview.h"
#include "gtkext/gtkdockpanel.h"
@@ -180,7 +181,7 @@ GtkWidget *create_editor(void)
GtkWidget *hpaned1;
GtkWidget *scrolledwindow2;
GtkWidget *snippet;
- GtkWidget *statusbar1;
+ GtkWidget *statusbar;
GtkWidget *view;
@@ -203,6 +204,7 @@ GtkWidget *create_editor(void)
GtkWidget *hbuttonbox; /* Support horizontal de btns. */
GtkWidget *button; /* Btn. de commande inférieur */
#endif
+ GtkWidget *button; /* Btn. de commande inférieur */
@@ -511,9 +513,12 @@ GtkWidget *create_editor(void)
*/
- statusbar1 = gtk_statusbar_new ();
- gtk_widget_show (statusbar1);
- gtk_box_pack_start (GTK_BOX (vbox1), statusbar1, FALSE, FALSE, 0);
+ statusbar = gtk_extended_status_bar_new();
+ g_object_set_data(ref, "statusbar", statusbar);
+
+ gtk_widget_show(statusbar);
+
+ gtk_box_pack_start(GTK_BOX(vbox1), statusbar, FALSE, FALSE, 0);
@@ -573,7 +578,7 @@ void mcb_file_new_project(GtkMenuItem *menuitem, gpointer data)
{
openida_project *project; /* Nouveau projet courant */
- project = create_empty_openida_project();
+ project = create_empty_openida_project(G_OBJECT(data));
set_current_openida_project(project);
@@ -611,7 +616,7 @@ void mcb_file_open_project(GtkMenuItem *menuitem, gpointer data)
{
filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));
- project = g_openida_project_new_from_xml(filename);
+ project = g_openida_project_new_from_xml(G_OBJECT(data), filename);
if (project != NULL)
{
@@ -935,7 +940,7 @@ void mcb_select_sections(GtkMenuItem *menuitem, gpointer data)
{
GtkWidget *dialog; /* Boîte de dialogue à montrer */
- dialog = create_sections_dialog(create_empty_openida_project()/* FIXME */);
+ dialog = create_sections_dialog(create_empty_openida_project(G_OBJECT(data))/* FIXME */);
gtk_widget_show(dialog);
}