Date:2010-03-26 15:27:29 (10 years 4 months ago)
Author:Mirko Lindner
Commit:c544a52e18c5aae130002d05aca62940ba744597
Message:fix commands

Signed-off-by: Mirko Lindner <mirko@sharism.cc>
Files: src/vido.cc (7 diffs)

Change Details

src/vido.cc
111111        txt += "Ctrl + Q = Quit Vido\n";
112112        txt += "F1 = Display this help\n";
113113        show_message(title, txt);
114        window2->connect_all();
114115}
115116
116117// fill gtkhtml widget with new content
...... 
155156
156157    }
157158// gtk_html_get_selection_html(GTK_HTML(html_wg), )
158        window2->resize(320,240);
159159        while( Gtk::Main::events_pending() ){
160160                Gtk::Main::iteration();
161161        }
...... 
234234// window2->disconnect_all();
235235
236236        screenblock(1);
237    log_debug("random called. window all disconnected");
237// log_debug("random called. window all disconnected");
238238    zim::File m = get_file();
239239        zim::Article article;
240240    do
...... 
278278    log_debug("go to top called");
279279    std::string term = "top";
280280    bool success = gtk_html_jump_to_anchor(GTK_HTML(html_wg), const_cast<char*>(term.c_str()));
281        window2->connect_all();
281282}
282283
283284// // // meta functions
...... 
446447  //static void gtk_html_adjust_cursor_position (GtkHTML *html)
447448}
448449
449void motion( GdkEventMotion *event)
450{
451  log_debug("motion");
452}
453450// // main function
454451int main(int argc, char **argv)
455452{
...... 
477474      g_signal_connect( G_OBJECT( html_wg ), "link_clicked", G_CALLBACK( on_link_clicked ), NULL );
478475      g_signal_connect( G_OBJECT( html_wg ), "scroll", G_CALLBACK( scrolled ), NULL );
479476      gtk_html_set_caret_mode(GTK_HTML(html_wg),false);
480            gtk_widget_set_events(html_wg, 0x3FFFFE);
481            gtk_signal_connect (GTK_OBJECT (html_wg), "resize",
482                        GTK_SIGNAL_FUNC (motion), NULL);
483// g_signal_connect( G_OBJECT( html_wg ), "event", G_CALLBACK( motion ), NULL );
484
485477// gtk_html_adjust_cursor_position(GTK_HTML(html_wg));
486478      Gtk::ScrolledWindow scrolled_window;
487479            scrolled_window2 = &scrolled_window;
488            scrolled_window.set_resize_mode(Gtk::RESIZE_PARENT);
489480      scrolled_window.add(*html);
490481      scrolled_window.set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
491482
...... 
494485            position = 0;
495486      show_random();
496487      gtk_html_edit_make_cursor_visible(GTK_HTML(html_wg));
497// html.add_events (Gdk::ALL_EVENTS_MASK);
498// html.signal_motion_notify_event().connect_notify(sigc::ptr_fun(motion));
499488      Gtk::Main::run(window);
500489    }
501490    else

Archive Download the corresponding diff file

Branches:
development
master



interactive