Include changes again. Something is wrong with CVS...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
20e05ffbd3
commit
071a2d7814
@ -15,8 +15,8 @@
|
||||
|
||||
#if wxUSE_CHECKLISTBOX
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxCheckListBox
|
||||
|
@ -16,8 +16,8 @@
|
||||
|
||||
#if wxUSE_CHOICE
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
@ -103,7 +103,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
|
||||
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
AppendHelper(menu, choices[i]);
|
||||
GtkAppendHelper(menu, choices[i]);
|
||||
}
|
||||
|
||||
gtk_option_menu_set_menu( GTK_OPTION_MENU(m_widget), menu );
|
||||
@ -134,7 +134,7 @@ int wxChoice::DoAppend( const wxString &item )
|
||||
|
||||
GtkWidget *menu = gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) );
|
||||
|
||||
return AppendHelper(menu, item);
|
||||
return GtkAppendHelper(menu, item);
|
||||
}
|
||||
|
||||
void wxChoice::DoSetItemClientData( int n, void* clientData )
|
||||
@ -318,36 +318,6 @@ void wxChoice::SetSelection( int n )
|
||||
gtk_option_menu_set_history( GTK_OPTION_MENU(m_widget), (gint)tmp );
|
||||
}
|
||||
|
||||
void wxChoice::DisableEvents()
|
||||
{
|
||||
/*
|
||||
GtkMenuShell *menu_shell = GTK_MENU_SHELL( gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) ) );
|
||||
GList *child = menu_shell->children;
|
||||
while (child)
|
||||
{
|
||||
gtk_signal_disconnect_by_func( GTK_OBJECT( child->data ),
|
||||
GTK_SIGNAL_FUNC(gtk_choice_clicked_callback), (gpointer*)this );
|
||||
|
||||
child = child->next;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void wxChoice::EnableEvents()
|
||||
{
|
||||
/*
|
||||
GtkMenuShell *menu_shell = GTK_MENU_SHELL( gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) ) );
|
||||
GList *child = menu_shell->children;
|
||||
while (child)
|
||||
{
|
||||
gtk_signal_connect( GTK_OBJECT( child->data ), "activate",
|
||||
GTK_SIGNAL_FUNC(gtk_choice_clicked_callback), (gpointer*)this );
|
||||
|
||||
child = child->next;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void wxChoice::ApplyWidgetStyle()
|
||||
{
|
||||
SetWidgetStyle();
|
||||
@ -373,7 +343,7 @@ void wxChoice::ApplyWidgetStyle()
|
||||
}
|
||||
}
|
||||
|
||||
size_t wxChoice::AppendHelper(GtkWidget *menu, const wxString& item)
|
||||
size_t wxChoice::GtkAppendHelper(GtkWidget *menu, const wxString& item)
|
||||
{
|
||||
GtkWidget *menu_item = gtk_menu_item_new_with_label( item.mbc_str() );
|
||||
|
||||
|
@ -19,9 +19,9 @@
|
||||
#include "wx/utils.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
#include "glib.h"
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <glib.h>
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// thread system
|
||||
|
@ -14,8 +14,8 @@
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gdk/gdkprivate.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gdk/gdkprivate.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxColour
|
||||
|
@ -18,8 +18,8 @@
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include "wx/control.h"
|
||||
|
||||
#include "gtk/gtk.h"
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxControl
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "wx/mstream.h"
|
||||
#include "wx/image.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// global data
|
||||
|
@ -14,8 +14,8 @@
|
||||
|
||||
#include "wx/dc.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// constants
|
||||
|
@ -15,10 +15,10 @@
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/gtk/win_gtk.h"
|
||||
#include <math.h> // for floating-point functions
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <math.h> // for floating-point functions
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// local data
|
||||
|
@ -13,8 +13,8 @@
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxMemoryDC
|
||||
|
@ -14,8 +14,8 @@
|
||||
#include "wx/dcscreen.h"
|
||||
#include "wx/window.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// global data initialization
|
||||
@ -31,9 +31,8 @@ int wxScreenDC::sm_overlayWindowY = 0;
|
||||
|
||||
extern "C" {
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gdk/gdkprivate.h"
|
||||
#include "gdk/gdkx.h"
|
||||
#include <gdk/gdkprivate.h>
|
||||
#include <gdk/gdkx.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
int my_nevent_masks = 17;
|
||||
|
@ -16,9 +16,10 @@
|
||||
#include "wx/app.h"
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include "gdk/gdkkeysyms.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
|
||||
#include "wx/gtk/win_gtk.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -21,12 +21,12 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include "gdk/gdkprivate.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkprivate.h>
|
||||
|
||||
#include "gtk/gtkdnd.h"
|
||||
#include "gtk/gtkselection.h"
|
||||
#include <gtk/gtkdnd.h>
|
||||
#include <gtk/gtkselection.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/generic/msgdlgg.h"
|
||||
|
||||
#include "gtk/gtk.h"
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
#include <strings.h>
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxFontRefData
|
||||
|
@ -861,7 +861,7 @@ GtkWidget *wxListBox::GetConnectWidget()
|
||||
|
||||
bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
|
||||
{
|
||||
if (wxWindow::IsOwnGtkWindow( window )) return TRUE;
|
||||
if (GTK_WIDGET(m_list)->window == window) return TRUE;
|
||||
|
||||
GList *child = m_list->children;
|
||||
while (child)
|
||||
|
@ -15,8 +15,8 @@
|
||||
|
||||
#if wxUSE_CHECKLISTBOX
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxCheckListBox
|
||||
|
@ -16,8 +16,8 @@
|
||||
|
||||
#if wxUSE_CHOICE
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
@ -103,7 +103,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
|
||||
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
AppendHelper(menu, choices[i]);
|
||||
GtkAppendHelper(menu, choices[i]);
|
||||
}
|
||||
|
||||
gtk_option_menu_set_menu( GTK_OPTION_MENU(m_widget), menu );
|
||||
@ -134,7 +134,7 @@ int wxChoice::DoAppend( const wxString &item )
|
||||
|
||||
GtkWidget *menu = gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) );
|
||||
|
||||
return AppendHelper(menu, item);
|
||||
return GtkAppendHelper(menu, item);
|
||||
}
|
||||
|
||||
void wxChoice::DoSetItemClientData( int n, void* clientData )
|
||||
@ -318,36 +318,6 @@ void wxChoice::SetSelection( int n )
|
||||
gtk_option_menu_set_history( GTK_OPTION_MENU(m_widget), (gint)tmp );
|
||||
}
|
||||
|
||||
void wxChoice::DisableEvents()
|
||||
{
|
||||
/*
|
||||
GtkMenuShell *menu_shell = GTK_MENU_SHELL( gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) ) );
|
||||
GList *child = menu_shell->children;
|
||||
while (child)
|
||||
{
|
||||
gtk_signal_disconnect_by_func( GTK_OBJECT( child->data ),
|
||||
GTK_SIGNAL_FUNC(gtk_choice_clicked_callback), (gpointer*)this );
|
||||
|
||||
child = child->next;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void wxChoice::EnableEvents()
|
||||
{
|
||||
/*
|
||||
GtkMenuShell *menu_shell = GTK_MENU_SHELL( gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) ) );
|
||||
GList *child = menu_shell->children;
|
||||
while (child)
|
||||
{
|
||||
gtk_signal_connect( GTK_OBJECT( child->data ), "activate",
|
||||
GTK_SIGNAL_FUNC(gtk_choice_clicked_callback), (gpointer*)this );
|
||||
|
||||
child = child->next;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void wxChoice::ApplyWidgetStyle()
|
||||
{
|
||||
SetWidgetStyle();
|
||||
@ -373,7 +343,7 @@ void wxChoice::ApplyWidgetStyle()
|
||||
}
|
||||
}
|
||||
|
||||
size_t wxChoice::AppendHelper(GtkWidget *menu, const wxString& item)
|
||||
size_t wxChoice::GtkAppendHelper(GtkWidget *menu, const wxString& item)
|
||||
{
|
||||
GtkWidget *menu_item = gtk_menu_item_new_with_label( item.mbc_str() );
|
||||
|
||||
|
@ -19,9 +19,9 @@
|
||||
#include "wx/utils.h"
|
||||
#include "wx/log.h"
|
||||
|
||||
#include "glib.h"
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <glib.h>
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// thread system
|
||||
|
@ -14,8 +14,8 @@
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gdk/gdkprivate.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gdk/gdkprivate.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxColour
|
||||
|
@ -18,8 +18,8 @@
|
||||
#include "wx/settings.h"
|
||||
#include "wx/intl.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include "wx/control.h"
|
||||
|
||||
#include "gtk/gtk.h"
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxControl
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "wx/cursor.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "wx/mstream.h"
|
||||
#include "wx/image.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// global data
|
||||
|
@ -14,8 +14,8 @@
|
||||
|
||||
#include "wx/dc.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// constants
|
||||
|
@ -15,10 +15,10 @@
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/gtk/win_gtk.h"
|
||||
#include <math.h> // for floating-point functions
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <math.h> // for floating-point functions
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// local data
|
||||
|
@ -13,8 +13,8 @@
|
||||
|
||||
#include "wx/dcmemory.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxMemoryDC
|
||||
|
@ -14,8 +14,8 @@
|
||||
#include "wx/dcscreen.h"
|
||||
#include "wx/window.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// global data initialization
|
||||
@ -31,9 +31,8 @@ int wxScreenDC::sm_overlayWindowY = 0;
|
||||
|
||||
extern "C" {
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gdk/gdkprivate.h"
|
||||
#include "gdk/gdkx.h"
|
||||
#include <gdk/gdkprivate.h>
|
||||
#include <gdk/gdkx.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
int my_nevent_masks = 17;
|
||||
|
@ -16,9 +16,10 @@
|
||||
#include "wx/app.h"
|
||||
#include "wx/cursor.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include "gdk/gdkkeysyms.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
|
||||
#include "wx/gtk/win_gtk.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -21,12 +21,12 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include "gtk/gtk.h"
|
||||
#include "gdk/gdkprivate.h"
|
||||
#include <gdk/gdk.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkprivate.h>
|
||||
|
||||
#include "gtk/gtkdnd.h"
|
||||
#include "gtk/gtkselection.h"
|
||||
#include <gtk/gtkdnd.h>
|
||||
#include <gtk/gtkselection.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "wx/intl.h"
|
||||
#include "wx/generic/msgdlgg.h"
|
||||
|
||||
#include "gtk/gtk.h"
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// idle system
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
#include <strings.h>
|
||||
|
||||
#include "gdk/gdk.h"
|
||||
#include <gdk/gdk.h>
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxFontRefData
|
||||
|
@ -861,7 +861,7 @@ GtkWidget *wxListBox::GetConnectWidget()
|
||||
|
||||
bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
|
||||
{
|
||||
if (wxWindow::IsOwnGtkWindow( window )) return TRUE;
|
||||
if (GTK_WIDGET(m_list)->window == window) return TRUE;
|
||||
|
||||
GList *child = m_list->children;
|
||||
while (child)
|
||||
|
Loading…
Reference in New Issue
Block a user