Changed for world properties

This commit is contained in:
Jesse van den Kieboom 2006-01-05 23:28:59 +00:00
parent 2aecb858b8
commit d25cd5f949
1 changed files with 6 additions and 4 deletions

View File

@ -42,8 +42,10 @@ void on_gm_world_input_view_world_text_activate(GmWorldInputView *iview,
gchar *text, GmWorldView *view);
void on_gm_world_view_world_state_changing(GmWorld *world, guint state,
GmWorldView *view);
void on_gm_world_view_world_active_changed(GmWorld *world, gboolean active,
void on_gm_world_view_world_active_changed(GmWorld *world, GParamSpec *pspec,
GmWorldView *view);
void on_gm_world_view_world_highlight(GmWorld *world, gint start, gint end,
gchar *color, GmWorldView *view);
@ -381,7 +383,7 @@ gm_world_view_new(GmWorld *world) {
G_CALLBACK(on_gm_world_view_world_error), view);
g_signal_connect(world, "state_changing",
G_CALLBACK(on_gm_world_view_world_state_changing), view);
g_signal_connect(world, "active_changed",
g_signal_connect(world, "notify::active",
G_CALLBACK(on_gm_world_view_world_active_changed), view);
g_signal_connect(world, "highlight",
G_CALLBACK(on_gm_world_view_world_highlight), view);
@ -812,9 +814,9 @@ on_gm_world_view_world_state_changing(GmWorld *world, guint state,
}
void
on_gm_world_view_world_active_changed(GmWorld *world, gboolean active,
on_gm_world_view_world_active_changed(GmWorld *world, GParamSpec *pspec,
GmWorldView *view) {
if (active) {
if (gm_world_active(world)) {
gtk_widget_grab_focus(GTK_WIDGET(view->priv->text_view_input));
}
}