src/gui/styles/qgtkstyle_p.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 8 3f74d0d4af4c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   149 Ptr_gtk_paint_vline QGtkStylePrivate::gtk_paint_vline = 0;
   149 Ptr_gtk_paint_vline QGtkStylePrivate::gtk_paint_vline = 0;
   150 Ptr_gtk_menu_item_set_submenu QGtkStylePrivate::gtk_menu_item_set_submenu = 0;
   150 Ptr_gtk_menu_item_set_submenu QGtkStylePrivate::gtk_menu_item_set_submenu = 0;
   151 Ptr_gtk_settings_get_default QGtkStylePrivate::gtk_settings_get_default = 0;
   151 Ptr_gtk_settings_get_default QGtkStylePrivate::gtk_settings_get_default = 0;
   152 Ptr_gtk_separator_menu_item_new QGtkStylePrivate::gtk_separator_menu_item_new = 0;
   152 Ptr_gtk_separator_menu_item_new QGtkStylePrivate::gtk_separator_menu_item_new = 0;
   153 Ptr_gtk_widget_size_allocate QGtkStylePrivate::gtk_widget_size_allocate = 0;
   153 Ptr_gtk_widget_size_allocate QGtkStylePrivate::gtk_widget_size_allocate = 0;
       
   154 Ptr_gtk_widget_size_request QGtkStylePrivate::gtk_widget_size_request = 0;
   154 Ptr_gtk_widget_set_direction QGtkStylePrivate::gtk_widget_set_direction = 0;
   155 Ptr_gtk_widget_set_direction QGtkStylePrivate::gtk_widget_set_direction = 0;
   155 Ptr_gtk_widget_path QGtkStylePrivate::gtk_widget_path = 0;
   156 Ptr_gtk_widget_path QGtkStylePrivate::gtk_widget_path = 0;
   156 Ptr_gtk_container_get_type QGtkStylePrivate::gtk_container_get_type = 0;
   157 Ptr_gtk_container_get_type QGtkStylePrivate::gtk_container_get_type = 0;
   157 Ptr_gtk_window_get_type QGtkStylePrivate::gtk_window_get_type = 0;
   158 Ptr_gtk_window_get_type QGtkStylePrivate::gtk_window_get_type = 0;
   158 Ptr_gtk_widget_get_type QGtkStylePrivate::gtk_widget_get_type = 0;
   159 Ptr_gtk_widget_get_type QGtkStylePrivate::gtk_widget_get_type = 0;
   159 Ptr_gtk_rc_get_style_by_paths QGtkStylePrivate::gtk_rc_get_style_by_paths = 0;
   160 Ptr_gtk_rc_get_style_by_paths QGtkStylePrivate::gtk_rc_get_style_by_paths = 0;
   160 Ptr_gtk_check_version QGtkStylePrivate::gtk_check_version = 0;
   161 Ptr_gtk_check_version QGtkStylePrivate::gtk_check_version = 0;
   161 Ptr_gtk_border_free QGtkStylePrivate::gtk_border_free = 0;
   162 Ptr_gtk_border_free QGtkStylePrivate::gtk_border_free = 0;
   162 
       
   163 Ptr_pango_font_description_get_size QGtkStylePrivate::pango_font_description_get_size = 0;
   163 Ptr_pango_font_description_get_size QGtkStylePrivate::pango_font_description_get_size = 0;
   164 Ptr_pango_font_description_get_weight QGtkStylePrivate::pango_font_description_get_weight = 0;
   164 Ptr_pango_font_description_get_weight QGtkStylePrivate::pango_font_description_get_weight = 0;
   165 Ptr_pango_font_description_get_family QGtkStylePrivate::pango_font_description_get_family = 0;
   165 Ptr_pango_font_description_get_family QGtkStylePrivate::pango_font_description_get_family = 0;
   166 Ptr_pango_font_description_get_style QGtkStylePrivate::pango_font_description_get_style = 0;
   166 Ptr_pango_font_description_get_style QGtkStylePrivate::pango_font_description_get_style = 0;
   167 
   167 
   408     gtk_expander_new = (Ptr_gtk_expander_new)libgtk.resolve("gtk_expander_new");
   408     gtk_expander_new = (Ptr_gtk_expander_new)libgtk.resolve("gtk_expander_new");
   409     gtk_statusbar_new = (Ptr_gtk_statusbar_new)libgtk.resolve("gtk_statusbar_new");
   409     gtk_statusbar_new = (Ptr_gtk_statusbar_new)libgtk.resolve("gtk_statusbar_new");
   410     gtk_combo_box_entry_new = (Ptr_gtk_combo_box_entry_new)libgtk.resolve("gtk_combo_box_entry_new");
   410     gtk_combo_box_entry_new = (Ptr_gtk_combo_box_entry_new)libgtk.resolve("gtk_combo_box_entry_new");
   411     gtk_container_forall = (Ptr_gtk_container_forall)libgtk.resolve("gtk_container_forall");
   411     gtk_container_forall = (Ptr_gtk_container_forall)libgtk.resolve("gtk_container_forall");
   412     gtk_widget_size_allocate =(Ptr_gtk_widget_size_allocate)libgtk.resolve("gtk_widget_size_allocate");
   412     gtk_widget_size_allocate =(Ptr_gtk_widget_size_allocate)libgtk.resolve("gtk_widget_size_allocate");
       
   413     gtk_widget_size_request =(Ptr_gtk_widget_size_request)libgtk.resolve("gtk_widget_size_request");
   413     gtk_widget_set_direction =(Ptr_gtk_widget_set_direction)libgtk.resolve("gtk_widget_set_direction");
   414     gtk_widget_set_direction =(Ptr_gtk_widget_set_direction)libgtk.resolve("gtk_widget_set_direction");
   414     gtk_widget_path =(Ptr_gtk_widget_path)libgtk.resolve("gtk_widget_path");
   415     gtk_widget_path =(Ptr_gtk_widget_path)libgtk.resolve("gtk_widget_path");
   415     gtk_container_get_type =(Ptr_gtk_container_get_type)libgtk.resolve("gtk_container_get_type");
   416     gtk_container_get_type =(Ptr_gtk_container_get_type)libgtk.resolve("gtk_container_get_type");
   416     gtk_window_get_type =(Ptr_gtk_window_get_type)libgtk.resolve("gtk_window_get_type");
   417     gtk_window_get_type =(Ptr_gtk_window_get_type)libgtk.resolve("gtk_window_get_type");
   417     gtk_widget_get_type =(Ptr_gtk_widget_get_type)libgtk.resolve("gtk_widget_get_type");
   418     gtk_widget_get_type =(Ptr_gtk_widget_get_type)libgtk.resolve("gtk_widget_get_type");
       
   419 
   418     gtk_rc_get_style_by_paths =(Ptr_gtk_rc_get_style_by_paths)libgtk.resolve("gtk_rc_get_style_by_paths");
   420     gtk_rc_get_style_by_paths =(Ptr_gtk_rc_get_style_by_paths)libgtk.resolve("gtk_rc_get_style_by_paths");
   419     gtk_check_version =(Ptr_gtk_check_version)libgtk.resolve("gtk_check_version");
   421     gtk_check_version =(Ptr_gtk_check_version)libgtk.resolve("gtk_check_version");
   420     gtk_border_free =(Ptr_gtk_border_free)libgtk.resolve("gtk_border_free");
   422     gtk_border_free =(Ptr_gtk_border_free)libgtk.resolve("gtk_border_free");
   421     pango_font_description_get_size = (Ptr_pango_font_description_get_size)libgtk.resolve("pango_font_description_get_size");
   423     pango_font_description_get_size = (Ptr_pango_font_description_get_size)libgtk.resolve("pango_font_description_get_size");
   422     pango_font_description_get_weight = (Ptr_pango_font_description_get_weight)libgtk.resolve("pango_font_description_get_weight");
   424     pango_font_description_get_weight = (Ptr_pango_font_description_get_weight)libgtk.resolve("pango_font_description_get_weight");
   445     GtkWidget *gtkMenu = QGtkStylePrivate::gtk_menu_new();
   447     GtkWidget *gtkMenu = QGtkStylePrivate::gtk_menu_new();
   446     gtk_menu_item_set_submenu((GtkMenuItem*)(gtkMenuBarItem), gtkMenu);
   448     gtk_menu_item_set_submenu((GtkMenuItem*)(gtkMenuBarItem), gtkMenu);
   447     gtk_widget_realize(gtkMenu);
   449     gtk_widget_realize(gtkMenu);
   448 
   450 
   449     GtkWidget *gtkMenuItem = QGtkStylePrivate::gtk_menu_item_new();
   451     GtkWidget *gtkMenuItem = QGtkStylePrivate::gtk_menu_item_new();
       
   452     g_object_set(gtkMenuItem, "label", "X", NULL);
       
   453 
   450     gtk_menu_shell_append((GtkMenuShell*)gtkMenu, gtkMenuItem);
   454     gtk_menu_shell_append((GtkMenuShell*)gtkMenu, gtkMenuItem);
   451     gtk_widget_realize(gtkMenuItem);
   455     gtk_widget_realize(gtkMenuItem);
   452 
   456 
   453     GtkWidget *gtkCheckMenuItem = QGtkStylePrivate::gtk_check_menu_item_new();
   457     GtkWidget *gtkCheckMenuItem = QGtkStylePrivate::gtk_check_menu_item_new();
       
   458     g_object_set(gtkCheckMenuItem, "label", "X", NULL);
   454     gtk_menu_shell_append((GtkMenuShell*)gtkMenu, gtkCheckMenuItem);
   459     gtk_menu_shell_append((GtkMenuShell*)gtkMenu, gtkCheckMenuItem);
   455     gtk_widget_realize(gtkCheckMenuItem);
   460     gtk_widget_realize(gtkCheckMenuItem);
   456 
   461 
   457     GtkWidget *gtkMenuSeparator = QGtkStylePrivate::gtk_separator_menu_item_new();
   462     GtkWidget *gtkMenuSeparator = QGtkStylePrivate::gtk_separator_menu_item_new();
   458     gtk_menu_shell_append((GtkMenuShell*)gtkMenu, gtkMenuSeparator);
   463     gtk_menu_shell_append((GtkMenuShell*)gtkMenu, gtkMenuSeparator);