Hi all, <br><br>I am trying to using a button only with image from stock, but i cannot success, the button only show text like &quot;Preferences&quot; instead of showing image.  Does anyone knows how to get button with only image?<br>
<br>I attached my code below <br><br><br>------------------snipet ---------------------- <br>    edit_name_button     = gtk_button_new_from_stock(GTK_STOCK_PREFERENCES);<br>    <br>    /*<br>    edit_name_button = gtk_button_new_with_label(&quot;&quot;);<br>
    gtk_button_set_image(GTK_BUTTON(edit_name_button), gtk_image_new_from_stock(GTK_STOCK_PREFERENCES, GTK_ICON_SIZE_SMALL_TOOLBAR));<br>    */<br>   <br>    main-&gt;contactproperties_name_entry = gtk_entry_new();<br>    <br>
    gtk_entry_set_has_frame(GTK_ENTRY(main-&gt;contactproperties_name_entry), FALSE);<br>    <br>    gtk_entry_set_editable(GTK_ENTRY(main-&gt;contactproperties_name_entry), FALSE);<br>    <br>    gtk_button_set_relief (GTK_BUTTON(edit_name_button), GTK_RELIEF_NONE);<br>
  <br>    /*3 items add to horizontal box */<br>    gtk_container_add (GTK_CONTAINER(name_hbox), name_label);<br>    gtk_container_add (GTK_CONTAINER(name_hbox), main-&gt;contactproperties_name_entry);<br>    gtk_container_add (GTK_CONTAINER(name_hbox), edit_name_button);<br>
   <br>    gtk_box_set_child_packing (GTK_BOX(name_hbox), name_label,<br>            FALSE, FALSE, 0, GTK_PACK_START);<br>    gtk_box_set_child_packing (GTK_BOX(name_hbox), edit_name_button,<br>            FALSE, FALSE, 0, GTK_PACK_END);<br>
 <br>    /*add to vertical box*/       <br>    gtk_container_add (GTK_CONTAINER(vbox), name_hbox); <br><br>    gtk_box_set_child_packing (GTK_BOX(vbox), name_hbox,<br>            FALSE, FALSE, 0, GTK_PACK_START);<br><br>------------------snipet ---------------------- <br>
<br>    <br>