]> Pileus Git - ~andy/gtk/blobdiff - gtk/tests/action.c
Some more documentation fixes
[~andy/gtk] / gtk / tests / action.c
index 97b25d0d769d179ad9cc82b5fead570aad41c57f..df8c44523ad1d212e1c4f82aac250b453f93a483 100644 (file)
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser 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/>.
  */
 
 #include <gtk/gtk.h>
@@ -54,9 +52,10 @@ static void
 menu_item_label_notify_count (ActionTest    *fixture,
                               gconstpointer  test_data)
 {
-  GtkMenuItem *item = gtk_menu_item_new ();
+  GtkWidget *item = gtk_menu_item_new ();
   unsigned int emmisions = 0;
 
+  g_object_ref_sink (item);
   g_signal_connect (item, "notify::label",
                    G_CALLBACK (notify_count_emmisions), &emmisions);