]> Pileus Git - ~andy/gtk/blobdiff - tests/teststatusicon.c
Change FSF Address
[~andy/gtk] / tests / teststatusicon.c
index 79caeef1a92bb162cc2186b156260e2124a7de86..c6f81fc580205f99221b60aa8771a24b52d998e5 100755 (executable)
@@ -13,9 +13,7 @@
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  *
  * Authors:
  *     Mark McLoughlin <mark@skynet.ie>
@@ -75,12 +73,12 @@ update_icons (void)
 
   if (status == TEST_STATUS_INFO)
     {
-      icon_name = GTK_STOCK_DIALOG_INFO;
+      icon_name = "dialog-information";
       tooltip = "Some Information ...";
     }
   else
     {
-      icon_name = GTK_STOCK_DIALOG_QUESTION;
+      icon_name = "dialog-question";
       tooltip = "Some Question ...";
     }
 
@@ -231,10 +229,6 @@ popup_menu (GtkStatusIcon *icon,
   gtk_menu_set_screen (GTK_MENU (menu),
                        gtk_status_icon_get_screen (icon));
 
-  gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
-
-  gtk_widget_show (menuitem);
-
   menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_PROPERTIES, NULL);
   g_signal_connect (menuitem, "activate", G_CALLBACK (do_properties), icon);