~ubuntu-branches/ubuntu/gutsy/avscan/gutsy-security

« back to all changes in this revision

Viewing changes to avscan/guiutils.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2006-08-31 18:52:27 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060831185227-ol7ren8qsenrzlvh
Tags: 0.8.5-openssl-1
* New upstream release.
* Register html documentation with doc-base.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include <gtk/gtk.h>
6
6
#include <gtk/gtkinvisible.h>
7
7
#include <gdk/gdkkeysyms.h>
8
 
#if defined(WIN32)
 
8
#if defined(_WIN32)
9
9
# include <gdk/gdkwin32.h>
10
 
# define HAVE_WIN32
11
10
#else
12
11
# include <gdk/gdkx.h>
13
12
# define HAVE_X
1735
1734
            return;
1736
1735
 
1737
1736
        gdk_window_clear(window);
1738
 
#ifndef HAVE_WIN32
 
1737
#ifndef _WIN32
1739
1738
        gtk_draw_handle(
1740
1739
            style, window,
1741
1740
            GTK_STATE_NORMAL,           /* State type */
2425
2424
 */
2426
2425
gint GUIWindowGetRefCount(GdkWindow *window)
2427
2426
{
2428
 
#if defined(WIN32)
 
2427
#if defined(_WIN32)
2429
2428
        return((window != NULL) ? 1 : 0);
2430
2429
#else
2431
2430
        return((window != NULL) ?
5885
5884
            /* Create a GtkTable to hold the icon and labels */
5886
5885
            w = gtk_table_new(1, 3, FALSE);
5887
5886
            gtk_container_add(GTK_CONTAINER(parent), w);
5888
 
#ifndef HAVE_WIN32
 
5887
#ifndef _WIN32
5889
5888
            gtk_table_set_col_spacing(
5890
5889
                GTK_TABLE(w), 0, (guint)border_minor
5891
5890
            );
6478
6477
}
6479
6478
 
6480
6479
/*
6481
 
 *      Links the Menu Item to the Sub Menu.
 
6480
 *      Sets the menu item's sub menu.
 
6481
 *
 
6482
 *      If the menu item's previous submenu exists then it will be
 
6483
 *      destroyed first.
 
6484
 *
 
6485
 *      If sub_menu is NULL then the menu item's previous submenu (if
 
6486
 *      any) be destroyed and the menu item will be set as not having
 
6487
 *      any submenu.
6482
6488
 */
6483
6489
void GUIMenuItemSetSubMenu(
6484
6490
        GtkWidget *menu_item, GtkWidget *sub_menu
6485
6491
)
6486
6492
{
6487
 
        if(menu_item == NULL)
 
6493
        GtkMenuItem *mi;
 
6494
 
 
6495
        if((menu_item != NULL) ? !GTK_IS_MENU_ITEM(menu_item) : TRUE)
6488
6496
            return;
6489
6497
 
6490
 
        if(sub_menu == NULL)
6491
 
            gtk_menu_item_remove_submenu(GTK_MENU_ITEM(menu_item));
 
6498
        mi = GTK_MENU_ITEM(menu_item);
 
6499
 
 
6500
        if((sub_menu != NULL) ? GTK_IS_MENU(sub_menu) : FALSE)
 
6501
            gtk_menu_item_set_submenu(mi, sub_menu);
6492
6502
        else
6493
 
            gtk_menu_item_set_submenu(
6494
 
                GTK_MENU_ITEM(menu_item), sub_menu
6495
 
            );
 
6503
            gtk_menu_item_remove_submenu(mi);
6496
6504
}
6497
6505
 
6498
6506