Diff of /trunk/src/misc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 137 by harbaum, Mon Oct 19 18:21:20 2009 UTC revision 138 by harbaum, Tue Oct 20 13:25:04 2009 UTC
# Line 475  GtkWidget *link_button_by_id(appdata_t * Line 475  GtkWidget *link_button_by_id(appdata_t *
475    return gtk_label_new(str);    return gtk_label_new(str);
476  }  }
477    
478    
479    GtkWidget *link_icon_button_by_id(appdata_t *appdata, GtkWidget *icon,
480                                 const char *type, int id) {
481    
482    #ifdef ENABLE_BROWSER_INTERFACE
483      if(id) {
484        GtkWidget *ref = gtk_button_new();
485        gtk_button_set_image(GTK_BUTTON(ref), icon);
486    
487    #if defined(USE_MAEMO) && (MAEMO_VERSION_MAJOR == 5)
488        //    hildon_gtk_widget_set_theme_size(ref,
489        //         (HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH));
490    #endif
491        g_object_set_data(G_OBJECT(ref), "id", (gpointer)id);
492        g_object_set_data(G_OBJECT(ref), "type", (gpointer)type);
493        gtk_signal_connect(GTK_OBJECT(ref), "clicked",
494                           GTK_SIGNAL_FUNC(on_link_id_clicked), appdata);
495    
496        return ref;
497      }
498    #endif
499      return icon;
500    }
501    

Legend:
Removed from v.137  
changed lines
  Added in v.138