View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#75
Originally Posted by cpscotti View Post
=]]
I'll sure add it to the main source tonight!! (with proper credits)
Seems my code is not THAAT bad then.. lol!


Thanks!
Like this:
I confess I liked the timer Beard-Trick ("Barbatrucco")!!!
And learnt a lot by your coding!!!


PHP Code:
.........snip.........
    
gtk_window_resize (GTK_WINDOW (self), (int)(SIZE_WIDTH_ALL*0.118), SIZE_HEIGHT_LINE);

    
g_timeout_add (500, (GSourceFunc)desktop_cmd_exec_resize_hackself);
........
snip.........

gboolean desktop_cmd_exec_resize_hack(DesktopCmdExec *self)
{
//     g_warning("HACK");
    
if(self->priv->widgetID != NULL)
    {
        
desktop_cmd_exec_read_settings (self);
        
desktop_cmd_exec_update_content (self);

//g_warning("W %d H %d",(int)(SIZE_WIDTH_ALL*self->priv->widthRatio),(int)(SIZE_HEIGHT_LINE*self->priv->heightRatio));//AP
//        gtk_widget_set_size_request (GTK_WIDGET (self), (int)(SIZE_WIDTH_ALL*self->priv->widthRatio), SIZE_HEIGHT_LINE);//AP
//        gtk_window_resize (GTK_WINDOW (self), (int)(SIZE_WIDTH_ALL*self->priv->widthRatio), SIZE_HEIGHT_LINE);//AP
        
gtk_widget_set_size_request (GTK_WIDGET (self), (int)(SIZE_WIDTH_ALL*self->priv->widthRatio), (int)(SIZE_HEIGHT_LINE*self->priv->heightRatio));//AP
        
gtk_window_resize (GTK_WINDOW (self), (int)(SIZE_WIDTH_ALL*self->priv->widthRatio), (int)(SIZE_HEIGHT_LINE*self->priv->heightRatio));//AP
    
}
//     else
//     {
//         g_warning("HACK unsuccessful");
//     }

    
return FALSE;
}
.........
snip......... 
 

The Following User Says Thank You to No!No!No!Yes! For This Useful Post: