GTK docking interfaces and more

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Implicit protocol

roundabout,
created on Wednesday, 21 May 2025, 19:42:12 (1747856532), received on Wednesday, 21 May 2025, 19:42:15 (1747856535)
Author identity: vlad <vlad.muntoiu@gmail.com>

4e267f07c3efdbf21f210a78ea45208271956d82

panthera-www.cc

@@ -283,6 +283,10 @@ protected:

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    url_bar->set_hexpand(true);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    auto load_url_callback = [this]() {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        auto page = content_manager->get_last_operated_page();
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                    bool has_protocol = url_bar->get_text().find("://") != std::string::npos;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                    if(!has_protocol) {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                        url_bar->set_text("http://" + url_bar->get_text());
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                    }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        if(page) {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                            if(auto webview = WEBKIT_WEB_VIEW(page->get_child()->get_first_child()->gobj())) {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                webkit_web_view_load_uri(webview, url_bar->get_text().c_str());