Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:nfoobar
x2goclient-gtk
x2goclient-gtk.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File x2goclient-gtk.patch of Package x2goclient-gtk
diff -Naur x2goclient-gtk-3.01.orig/src/cupsprint.cpp x2goclient-gtk-3.01/src/cupsprint.cpp --- x2goclient-gtk-3.01.orig/src/cupsprint.cpp 2009-03-17 22:09:06.000000000 +0100 +++ x2goclient-gtk-3.01/src/cupsprint.cpp 2011-02-03 17:04:09.124438459 +0100 @@ -345,7 +345,7 @@ "/printing/CUPS/options"+ currentPrinter ); - for ( int i=0;i<options.size();++i ) + for ( size_t i=0;i<options.size();++i ) { std::vector<Glib::ustring> opt=Glib::Regex::split_simple ( "\\=",options[i] ); diff -Naur x2goclient-gtk-3.01.orig/src/cupsprintersettingsdialog.cpp x2goclient-gtk-3.01/src/cupsprintersettingsdialog.cpp --- x2goclient-gtk-3.01.orig/src/cupsprintersettingsdialog.cpp 2009-03-18 23:01:29.000000000 +0100 +++ x2goclient-gtk-3.01/src/cupsprintersettingsdialog.cpp 2011-02-03 17:07:36.505202901 +0100 @@ -161,7 +161,7 @@ std::vector<Glib::ustring> grName, grText; m_cups->getOptionGroups ( grName,grText ); - for ( int i=0;i<grName.size();++i ) + for ( size_t i=0;i<grName.size();++i ) { Gtk::TreeModel::Row group_row = * ( m_tree_model->append ( root_row->children() ) ); @@ -170,7 +170,7 @@ std::vector<Glib::ustring> optName, optText; m_cups->getOptionsList ( grName[i],optName,optText ); - for ( int j=0;j<optName.size();++j ) + for ( size_t j=0;j<optName.size();++j ) { Gtk::TreeModel::Row row = * ( m_tree_model->append ( @@ -207,12 +207,12 @@ setting, valueNames,valueTexts ); - for ( int i=0;i<valueNames.size();++i ) + for ( size_t i=0;i<valueNames.size();++i ) { Gtk::TreeModel::Row row = * ( m_list_model->append() ); row[m_list.valueText] = valueTexts[i]; row[m_list.value] = valueNames[i]; - if ( sel_val==i ) + if ( sel_val==int(i) ) { list_selection->select ( row ); Gtk::TreePath path ( row ); @@ -291,7 +291,7 @@ textMessage+="\n("+txt+" : "+valt+")"; } - Gtk::MessageDialog::MessageDialog dlg ( + Gtk::MessageDialog dlg ( textMessage, false,Gtk::MESSAGE_ERROR , Gtk::BUTTONS_OK ,true ); @@ -347,12 +347,12 @@ cb->set_sensitive ( false ); else { - for ( int i=0;i<values.size();++i ) + for ( size_t i=0;i<values.size();++i ) { Gtk::TreeModel::Row row = * ( store->append() ); row[m_list.value]=values[i]; row[m_list.valueText]=descriptions[i]; - if ( i==cur_val ) + if ( int(i)==cur_val ) cb->set_active ( row ); } } diff -Naur x2goclient-gtk-3.01.orig/src/cupsprintwidget.cpp x2goclient-gtk-3.01/src/cupsprintwidget.cpp --- x2goclient-gtk-3.01.orig/src/cupsprintwidget.cpp 2009-03-18 20:27:18.000000000 +0100 +++ x2goclient-gtk-3.01/src/cupsprintwidget.cpp 2011-02-03 17:04:34.271699998 +0100 @@ -29,7 +29,7 @@ std::vector<Glib::ustring> printers=m_cups->getPrinters(); int defind=0; Glib::ustring defprn=m_cups->getDefaultUserPrinter(); - for ( int i=0;i<printers.size();++i ) + for ( size_t i=0;i<printers.size();++i ) { Gtk::TreeModel::Row row = * ( m_prn_model->append() ); row[m_list.m_col_name] = printers[i]; diff -Naur x2goclient-gtk-3.01.orig/src/editconnectiondialog.cpp x2goclient-gtk-3.01/src/editconnectiondialog.cpp --- x2goclient-gtk-3.01.orig/src/editconnectiondialog.cpp 2009-07-21 20:01:32.000000000 +0200 +++ x2goclient-gtk-3.01/src/editconnectiondialog.cpp 2011-02-03 17:10:23.568201427 +0100 @@ -133,7 +133,7 @@ slot_sess_combo_changed(); slot_ssh_key_toggled(); // cmd_combo->append_text ( "" ); - for ( int i=0;i<parent->trans_applications_names()->size();++i ) + for ( size_t i=0;i<parent->trans_applications_names()->size();++i ) cmd_combo->append_text ( parent->trans_applications_names()->at ( i ) ); cmd_combo->get_entry()->set_text ( _ ( "Path to executable" ) ); @@ -457,7 +457,7 @@ session_combo->set_active ( 0 ); cmd_combo->clear_items(); // cmd_combo->append_text ( "" ); - for ( int i=0;i<parent->trans_applications_names()->size();++i ) + for ( size_t i=0;i<parent->trans_applications_names()->size();++i ) cmd_combo->append_text ( parent->trans_applications_names()->at ( i ) ); cmd_combo->get_entry()->set_text ( _ ( "Path to executable" ) ); diff -Naur x2goclient-gtk-3.01.orig/src/main_window.cc x2goclient-gtk-3.01/src/main_window.cc --- x2goclient-gtk-3.01.orig/src/main_window.cc 2009-09-24 20:02:33.000000000 +0200 +++ x2goclient-gtk-3.01/src/main_window.cc 2011-02-03 17:32:31.020576144 +0100 @@ -248,7 +248,6 @@ { int width,height; - Gtk::EventBox* main_box; get_object_from_xml ( main_box, "main_event_box" ); @@ -799,7 +798,10 @@ { std::string fname; int fd=Glib::file_open_tmp ( fname,"foto-XXXXXX" ); - write ( fd, ( const char* ) ( lst.front().getData() ),lst.front().length() ); + ssize_t ret = write ( fd, + ( const char* ) ( lst.front().getData() ), + lst.front().length() ); + (void) ret; close ( fd ); u.fname=fname; } @@ -815,7 +817,7 @@ Glib::ustring cfg_name="/apps/x2goclient/sessions"; sessions_list=d_conf_client->all_dirs ( cfg_name ); - for ( int i=0;i<sessions_list.size();++i ) + for ( size_t i=0;i<sessions_list.size();++i ) { sess s; s.id=sessions_list[i]; @@ -828,7 +830,7 @@ std::sort ( sess_list.begin(),sess_list.end() ); - for ( int i=0;i<sess_list.size();++i ) + for ( size_t i=0;i<sess_list.size();++i ) { SessionButton* but; if ( use_ldap ) @@ -879,7 +881,7 @@ void main_window::create_icon_for_session ( Glib::ustring id ) { bool crHidden=false; - Gtk::MessageDialog::MessageDialog dlg ( + Gtk::MessageDialog dlg ( _ ( "Desktop icons can be configured " "not to show x2goclient (hidden mode). " "If you like to use this feature you'll " @@ -918,14 +920,14 @@ void main_window::delete_session ( Glib::ustring id ) { - Gtk::MessageDialog::MessageDialog dlg ( _ ( "Are you sure you want to delete this session?" ), - false,Gtk::MESSAGE_WARNING, - Gtk::BUTTONS_YES_NO,true ); + Gtk::MessageDialog dlg ( _ ( "Are you sure you want to delete this session?" ), + false,Gtk::MESSAGE_WARNING, + Gtk::BUTTONS_YES_NO,true ); dlg.set_title ( _ ( "Warning" ) ); if ( dlg.run() !=Gtk::RESPONSE_YES ) return; std::vector<Gnome::Conf::Entry> entr=d_conf_client->all_entries ( id ); - for ( int i=0;i<entr.size();++i ) + for ( size_t i=0;i<entr.size();++i ) d_conf_client->unset ( entr[i].get_key() ); d_conf_client->unset ( id ); d_conf_client->suggest_sync(); @@ -1160,7 +1162,7 @@ pass_pass_entry->set_text ( "" ); std::cerr<<"ret serv nul "<<ret_servers<<std::endl; - for ( int i=0;i<x2go_servers.size();++i ) + for ( size_t i=0;i<x2go_servers.size();++i ) { std::cerr<<"try server "<<i<<":"<<x2go_servers[i].name<<std::endl; current_host=x2go_servers[i].name; @@ -1293,7 +1295,7 @@ { if ( proc ) { - for ( int i=0;i<x2go_servers.size();++i ) + for ( size_t i=0;i<x2go_servers.size();++i ) { if ( x2go_servers[i].proc==proc ) { @@ -1324,7 +1326,7 @@ if ( list_all_sessions.size() ==0 ) { bool have_con_server=false; - for ( int i =0 ; i< x2go_servers.size();++i ) + for ( size_t i =0 ; i< x2go_servers.size();++i ) { if ( x2go_servers[i].conn_ok ) { @@ -1421,7 +1423,7 @@ { if ( is_set.start_hidden ) { - for ( int i=0;i< sessions.size();++i ) + for ( size_t i=0;i< sessions.size();++i ) { x2goSession s=get_session_from_string ( sessions[i] ); int depth=main_wnd()->get_screen()->get_rgb_visual()->get_best_depth (); @@ -1666,7 +1668,7 @@ { if ( use_ldap ) { - for ( int i=0; i< x2go_servers.size();++i ) + for ( size_t i=0; i< x2go_servers.size();++i ) { if ( x2go_servers[i].conn_ok ) { @@ -1690,7 +1692,7 @@ m_sess_list_model->clear(); x2go_sessions.clear(); - for ( int i=0;i<sessions.size();++i ) + for ( size_t i=0;i<sessions.size();++i ) { x2goSession s=get_session_from_string ( sessions[i] ); x2go_sessions.push_back ( s ); @@ -1786,9 +1788,9 @@ } else message=_ ( "Your current color depth is different to the color depth of your x2go-session. This may cause problems reconnecting to this session and in most cases <b>you will loose the session</b> and have to start a new one! It's highly recommended to change the color depth of your display to " ) +ss.str() +_ ( " bit and restart your X-server before you reconnect to this x2go-session.\nResume this session anyway?" ); - Gtk::MessageDialog::MessageDialog dlg ( message, - true,Gtk::MESSAGE_WARNING, - Gtk::BUTTONS_YES_NO,true ); + Gtk::MessageDialog dlg ( message, + true,Gtk::MESSAGE_WARNING, + Gtk::BUTTONS_YES_NO,true ); dlg.set_title ( _ ( "Warning" ) ); int res=dlg.run(); @@ -1829,7 +1831,7 @@ { return s; } - for ( int i=0;i<x2go_sessions.size();++i ) + for ( size_t i=0;i<x2go_sessions.size();++i ) { if ( session_id==x2go_sessions[i].sessionId ) return x2go_sessions[i]; @@ -2127,9 +2129,9 @@ { Glib::ustring message=_ ( "Unable to create folder:" ) +dirpath; - Gtk::MessageDialog::MessageDialog dlg ( message, - true,Gtk::MESSAGE_ERROR, - Gtk::BUTTONS_OK,true ); + Gtk::MessageDialog dlg ( message, + true,Gtk::MESSAGE_ERROR, + Gtk::BUTTONS_OK,true ); dlg.set_title ( _ ( "Error" ) ); dlg.run(); if ( tunnel ) @@ -2154,9 +2156,9 @@ if ( !fl.is_open () ) { Glib::ustring message=_ ( "Unable to write file:" ) +dirpath+"/options"; - Gtk::MessageDialog::MessageDialog dlg ( message, - true,Gtk::MESSAGE_ERROR, - Gtk::BUTTONS_OK,true ); + Gtk::MessageDialog dlg ( message, + true,Gtk::MESSAGE_ERROR, + Gtk::BUTTONS_OK,true ); dlg.set_title ( _ ( "Error" ) ); dlg.run(); if ( tunnel ) @@ -2233,10 +2235,12 @@ if ( status_t_info->get_buffer()->get_text().find ( "Connection to remote proxy 'localhost:"+ resuming_session.grPort+"' established" ) != Glib::ustring::npos ) + { if ( new_session ) set_status ( _ ( "starting" ) ) ; else set_status ( _ ( "resuming" ) ); + } if ( status_t_info->get_buffer()->get_text().find ( "Established X server connection" ) != Glib::ustring::npos ) @@ -2470,7 +2474,7 @@ { Glib::ustring command; - bool rdp_fs; + bool rdp_fs = false; Glib::ustring rdp_width,rdp_height,rdp_options,rdp_server; if ( !use_ldap ) { @@ -2647,9 +2651,9 @@ { Glib::ustring message=_ ( "Unable to create: " ); message+=root; - Gtk::MessageDialog::MessageDialog dlg ( message, - true,Gtk::MESSAGE_ERROR, - Gtk::BUTTONS_OK,true ); + Gtk::MessageDialog dlg ( message, + true,Gtk::MESSAGE_ERROR, + Gtk::BUTTONS_OK,true ); dlg.set_title ( _ ( "Error" ) ); dlg.run(); return ""; @@ -2663,9 +2667,9 @@ { Glib::ustring message= _ ( "Unable to create: " ); message+=str; - Gtk::MessageDialog::MessageDialog dlg ( message, - true,Gtk::MESSAGE_ERROR, - Gtk::BUTTONS_OK,true ); + Gtk::MessageDialog dlg ( message, + true,Gtk::MESSAGE_ERROR, + Gtk::BUTTONS_OK,true ); dlg.set_title ( _ ( "Error" ) ); dlg.run(); return ""; @@ -2830,7 +2834,7 @@ directory* main_window::get_exp_dir ( Glib::ustring key ) { - for ( int i=0;i<export_list.size();++i ) + for ( size_t i=0;i<export_list.size();++i ) { if ( key==export_list[i].key ) return & ( export_list[i] ); @@ -2875,9 +2879,9 @@ { Glib::ustring message=_ ( "Unable to create folder:" ) +path; - Gtk::MessageDialog::MessageDialog dlg ( message, - true,Gtk::MESSAGE_ERROR, - Gtk::BUTTONS_OK,true ); + Gtk::MessageDialog dlg ( message, + true,Gtk::MESSAGE_ERROR, + Gtk::BUTTONS_OK,true ); dlg.set_title ( _ ( "Error" ) ); dlg.run(); } @@ -3185,9 +3189,9 @@ void main_window::show_error_box ( Glib::ustring message ) { - Gtk::MessageDialog::MessageDialog dlg ( message, - true,Gtk::MESSAGE_ERROR, - Gtk::BUTTONS_OK,true ); + Gtk::MessageDialog dlg ( message, + true,Gtk::MESSAGE_ERROR, + Gtk::BUTTONS_OK,true ); dlg.set_title ( _ ( "Error" ) ); dlg.run(); } @@ -3324,13 +3328,13 @@ break; } } - for ( int i=0;i<servers.size();++i ) + for ( size_t i=0;i<servers.size();++i ) { std::vector<Glib::ustring> lst; lst=Glib::Regex::split_simple ( "\\ ",servers[i] ); clean_empty_strings ( lst ); - for ( int l=0;l<x2go_servers.size();++l ) + for ( size_t l=0;l<x2go_servers.size();++l ) { if ( x2go_servers[l].name==lst[0] ) { @@ -3342,7 +3346,7 @@ } } std::sort ( x2go_servers.begin(),x2go_servers.end() ); - for ( int l=0;l<x2go_servers.size();++l ) + for ( size_t l=0;l<x2go_servers.size();++l ) { std::cerr<<x2go_servers[l].name<<", sessions: "<<x2go_servers[l].sessions<<std::endl; } diff -Naur x2goclient-gtk-3.01.orig/src/main_window.hh x2goclient-gtk-3.01/src/main_window.hh --- x2goclient-gtk-3.01.orig/src/main_window.hh 2009-09-24 22:51:38.000000000 +0200 +++ x2goclient-gtk-3.01/src/main_window.hh 2011-02-03 17:17:42.335707496 +0100 @@ -301,8 +301,8 @@ enum {STATE_SESSINPUT, STATE_PASSINPUT, STATE_SESSION} ui_state; bool started_with_card; bool terminated_with_card; - uint last_width; - uint last_height; + int last_width; + int last_height; bool accept_rsa; Glib::ustring current_session; bool new_session; @@ -354,7 +354,7 @@ Process* snd_server; x2goSession resuming_session; std::vector<Glib::ustring> list_all_sessions; - int ret_servers; + size_t ret_servers; Glib::RefPtr<Gdk::Pixbuf> background; GlademmData *gmm_data; TransparentEntry* uname; diff -Naur x2goclient-gtk-3.01.orig/src/pgpcard.cpp x2goclient-gtk-3.01/src/pgpcard.cpp --- x2goclient-gtk-3.01.orig/src/pgpcard.cpp 2009-09-24 22:39:11.000000000 +0200 +++ x2goclient-gtk-3.01/src/pgpcard.cpp 2011-02-03 17:24:05.827701050 +0100 @@ -181,7 +181,7 @@ // std::cerr<<"GPG out:"<<stdout<<std::endl; std::vector<Glib::ustring> lines= Glib::Regex::split_simple ( "\n",stdout ); - for ( int i=0;i<lines.size();++i ) + for ( size_t i=0;i<lines.size();++i ) { if ( lines[i].find ( "Application ID" ) !=Glib::ustring::npos ) { diff -Naur x2goclient-gtk-3.01.orig/src/printdialog.cpp x2goclient-gtk-3.01/src/printdialog.cpp --- x2goclient-gtk-3.01.orig/src/printdialog.cpp 2009-03-18 22:12:32.000000000 +0100 +++ x2goclient-gtk-3.01/src/printdialog.cpp 2011-02-03 17:24:04.767709067 +0100 @@ -59,7 +59,7 @@ "dialog (Menu -> Options -> " "Settings)" ); - Gtk::MessageDialog::MessageDialog dlg ( + Gtk::MessageDialog dlg ( textMessage, false,Gtk::MESSAGE_WARNING , Gtk::BUTTONS_OK ,true ); diff -Naur x2goclient-gtk-3.01.orig/src/printprocess.cpp x2goclient-gtk-3.01/src/printprocess.cpp --- x2goclient-gtk-3.01.orig/src/printprocess.cpp 2009-03-18 21:13:48.000000000 +0100 +++ x2goclient-gtk-3.01/src/printprocess.cpp 2011-02-03 17:25:39.279701780 +0100 @@ -226,7 +226,7 @@ void PrintProcess::show_error ( const Glib::ustring& title,const Glib::ustring& message ) { - Gtk::MessageDialog::MessageDialog dlg ( + Gtk::MessageDialog dlg ( message, false,Gtk::MESSAGE_ERROR , Gtk::BUTTONS_OK ,true ); diff -Naur x2goclient-gtk-3.01.orig/src/process.cpp x2goclient-gtk-3.01/src/process.cpp --- x2goclient-gtk-3.01.orig/src/process.cpp 2009-03-12 20:35:05.000000000 +0100 +++ x2goclient-gtk-3.01/src/process.cpp 2011-02-03 17:32:30.471699397 +0100 @@ -205,7 +205,7 @@ Glib::ustring Process::get_env ( std::vector<Glib::ustring>& env,Glib::ustring name ) { Glib::ustring val; - for ( int i=0;i<env.size();++i ) + for ( size_t i=0;i<env.size();++i ) { Glib::ustring::size_type pos=env[i].find ( '=' ); if ( pos==Glib::ustring::npos ) @@ -224,7 +224,7 @@ const Glib::ustring& value ) { Glib::ustring str=name+"="+value; - for ( int i=0;i<env.size();++i ) + for ( size_t i=0;i<env.size();++i ) { Glib::ustring::size_type pos=env[i].find ( '=' ); if ( pos==Glib::ustring::npos ) diff -Naur x2goclient-gtk-3.01.orig/src/sessionbutton.cpp x2goclient-gtk-3.01/src/sessionbutton.cpp --- x2goclient-gtk-3.01.orig/src/sessionbutton.cpp 2009-09-08 22:18:07.000000000 +0200 +++ x2goclient-gtk-3.01/src/sessionbutton.cpp 2011-02-03 17:32:30.011702250 +0100 @@ -267,11 +267,11 @@ else first_rootless_id=OTHER; - for ( int i=0;i<parent->trans_applications_names()->size();++i ) + for ( size_t i=0;i<parent->trans_applications_names()->size();++i ) sess_combo->append_text ( parent->trans_applications_names()->at ( i ) ); - for ( int i=0;i<cmdlist.size();++i ) + for ( size_t i=0;i<cmdlist.size();++i ) { if ( cmdlist[i]!=""&&cmdlist[i]!=" " ) sess_combo->append_text ( diff -Naur x2goclient-gtk-3.01.orig/src/sessionmandialog.cpp x2goclient-gtk-3.01/src/sessionmandialog.cpp --- x2goclient-gtk-3.01.orig/src/sessionmandialog.cpp 2009-07-21 21:44:22.000000000 +0200 +++ x2goclient-gtk-3.01/src/sessionmandialog.cpp 2011-02-03 17:30:24.135701870 +0100 @@ -157,7 +157,7 @@ Glib::ustring cfg_name="/apps/x2goclient/sessions"; sess_list->clear_items(); sessions=d_conf_client->all_dirs ( cfg_name ); - for ( int i=0;i<sessions.size();++i ) + for ( size_t i=0;i<sessions.size();++i ) { // std::cerr<<*it<<std::endl; sess_list->append_text ( d_conf_client->get_string ( sessions[i] +"/name" ) ); diff -Naur x2goclient-gtk-3.01.orig/src/settingsdialog.cpp x2goclient-gtk-3.01/src/settingsdialog.cpp --- x2goclient-gtk-3.01.orig/src/settingsdialog.cpp 2009-03-18 20:19:33.000000000 +0100 +++ x2goclient-gtk-3.01/src/settingsdialog.cpp 2011-02-03 17:30:25.383702765 +0100 @@ -114,7 +114,7 @@ { Gtk::Entry* entry; Gtk::SpinButton* spin; - int val; + widg->save_settings(); for ( int i=1;i<=3;++i ) { diff -Naur x2goclient-gtk-3.01.orig/src/sshprocess.cpp x2goclient-gtk-3.01/src/sshprocess.cpp --- x2goclient-gtk-3.01.orig/src/sshprocess.cpp 2009-09-24 21:34:29.000000000 +0200 +++ x2goclient-gtk-3.01/src/sshprocess.cpp 2011-02-03 17:26:04.919711393 +0100 @@ -115,9 +115,9 @@ int res; if ( !autoAccept ) { - Gtk::MessageDialog::MessageDialog dlg ( resp, - false,Gtk::MESSAGE_WARNING, - Gtk::BUTTONS_YES_NO,true ); + Gtk::MessageDialog dlg ( resp, + false,Gtk::MESSAGE_WARNING, + Gtk::BUTTONS_YES_NO,true ); dlg.set_title ( errorString ); res=dlg.run(); diff -Naur x2goclient-gtk-3.01.orig/src/transparententry.cc x2goclient-gtk-3.01/src/transparententry.cc --- x2goclient-gtk-3.01.orig/src/transparententry.cc 2009-02-09 22:58:35.000000000 +0100 +++ x2goclient-gtk-3.01/src/transparententry.cc 2011-02-03 17:35:57.211701168 +0100 @@ -71,7 +71,7 @@ bool TransparentEntry::slot_key_press ( GdkEventKey* event, Glib::RefPtr<Gtk::AccelGroup> acc_grp ) { - int start_cursor_pos=cursor_position; + size_t start_cursor_pos=cursor_position; int start_sel,end_sel; bool selected=get_selection_bounds ( start_sel,end_sel ); bool is_shift=event->state&GDK_SHIFT_MASK; @@ -150,10 +150,10 @@ case GDK_KP_Right: { ret_from_this_function=true; - int pre_cursor_pos=cursor_position; + size_t pre_cursor_pos=cursor_position; if ( ! is_ctrl ) { - if ( cursor_position< get_text().length() ) + if ( cursor_position < get_text().length() ) ++cursor_position; } else @@ -357,7 +357,7 @@ if ( is_drawable() ) { int x=get_allocation().get_x(); - int y=get_allocation().get_y(); + // int y=get_allocation().get_y(); int width=get_allocation().get_width(); int height=get_allocation().get_height(); int x_offset; @@ -434,6 +434,8 @@ slot_button_release ( ( GdkEventButton* ) event ); break; case GDK_BUTTON_PRESS: slot_button_press ( ( GdkEventButton* ) event ); break; + default: + break; } return false; } @@ -482,10 +484,11 @@ get_layout_offsets ( x_offset,y_offset ); Glib::RefPtr<Pango::Layout> layout=get_layout(); int position,trailing; - bool in_lay=layout->xy_to_index ( but_ev->x*Pango::SCALE, - ( but_ev->y+10-y_offset ) - *Pango::SCALE, - position,trailing ); + + layout->xy_to_index ( but_ev->x*Pango::SCALE, + ( but_ev->y+10-y_offset ) + *Pango::SCALE, + position,trailing ); int dx=but_ev->x - layout->get_cursor_strong_pos ( position ).get_x() / diff -Naur x2goclient-gtk-3.01.orig/src/transparententry.h x2goclient-gtk-3.01/src/transparententry.h --- x2goclient-gtk-3.01.orig/src/transparententry.h 2009-02-09 23:39:27.000000000 +0100 +++ x2goclient-gtk-3.01/src/transparententry.h 2011-02-03 17:34:50.620093989 +0100 @@ -43,7 +43,7 @@ void slot_delete(); void select_all(); char cursor; - int cursor_position; + size_t cursor_position; Gdk::Color cursor_bg_color; bool last_kbd_sel; bool paint_cursor; diff -Naur x2goclient-gtk-3.01.orig/src/x2goclient_gtk.cc x2goclient-gtk-3.01/src/x2goclient_gtk.cc --- x2goclient-gtk-3.01.orig/src/x2goclient_gtk.cc 2009-08-04 20:19:04.000000000 +0200 +++ x2goclient-gtk-3.01/src/x2goclient_gtk.cc 2011-02-03 17:26:04.455711270 +0100 @@ -149,9 +149,9 @@ mtype=Gtk::MESSAGE_QUESTION; btype=Gtk::BUTTONS_YES_NO; } - Gtk::MessageDialog::MessageDialog dlg ( text, - true,mtype, - btype,true ); + Gtk::MessageDialog dlg ( text, + true,mtype, + btype,true ); dlg.set_title ( caption ); return dlg.run();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor