@ -43,6 +43,9 @@ static void handle_reload(GtkObject *obj, gpointer user_data);
/* signal handlers for gtkmozembed signals */
static gboolean open_url_request ( GtkObject * obj , const char * url ) ;
static void set_status_bar_link_message ( GtkObject * obj ) ;
static void set_status_bar_javascript_status ( GtkObject * obj ) ;
static void set_window_caption ( GtkObject * obj ) ;
/* --------------------------- implementations --------------------------------------- */
@ -120,6 +123,12 @@ gtk_kmozilla_init(GtkKmozilla *part)
GTK_SIGNAL_FUNC ( handle_reload ) , NULL ) ; */
gtk_signal_connect ( GTK_OBJECT ( moz ) , " open_uri " ,
GTK_SIGNAL_FUNC ( open_url_request ) , NULL ) ;
gtk_signal_connect ( GTK_OBJECT ( moz ) , " link_message " ,
GTK_SIGNAL_FUNC ( set_status_bar_link_message ) , NULL ) ;
gtk_signal_connect ( GTK_OBJECT ( moz ) , " js_status " ,
GTK_SIGNAL_FUNC ( set_status_bar_javascript_status ) , NULL ) ;
gtk_signal_connect ( GTK_OBJECT ( moz ) , " title " ,
GTK_SIGNAL_FUNC ( set_window_caption ) , NULL ) ;
mozilla = part ;
g_message ( " gtk_kmozilla_init \n " ) ;
@ -194,3 +203,23 @@ static gboolean open_url_request(GtkObject *obj, const char * url)
return req ;
}
static void set_status_bar_link_message ( GtkObject * obj )
{
g_message ( " ==================>>>>>>> kmozilla::setStatusBarLinkMessage " ) ;
gtk_browserextension_set_status_bar_text ( ( ( GtkKmozillaPrivate * ) mozilla - > data ) - > ext ,
gtk_moz_embed_get_link_message ( ( ( GtkKmozillaPrivate * ) mozilla - > data ) - > mozilla ) ) ;
}
static void set_status_bar_javascript_status ( GtkObject * obj )
{
g_message ( " ==================>>>>>>> kmozilla::setStatusBarJavascriptStatus " ) ;
gtk_browserextension_set_status_bar_text ( ( ( GtkKmozillaPrivate * ) mozilla - > data ) - > ext ,
gtk_moz_embed_get_js_status ( ( ( GtkKmozillaPrivate * ) mozilla - > data ) - > mozilla ) ) ;
}
static void set_window_caption ( GtkObject * obj )
{
g_message ( " ==================>>>>>>> kmozilla::setWindowCaption " ) ;
gtk_browserextension_set_window_caption ( ( ( GtkKmozillaPrivate * ) mozilla - > data ) - > ext ,
gtk_moz_embed_get_title ( ( ( GtkKmozillaPrivate * ) mozilla - > data ) - > mozilla ) ) ;
}