[gtk/gtkwindow] Added accessor for GTK_WINDOW ()->type
There already is the "type" property, but an accessor function for it would be intuitive: gtk_window_get_window_type() Fixes https://bugzilla.gnome.org/show_bug.cgi?id=595498
This commit is contained in:
		
				
					committed by
					
						
						Javier Jardón
					
				
			
			
				
	
			
			
			
						parent
						
							ecc3065f76
						
					
				
				
					commit
					00d87c2563
				
			@ -5744,6 +5744,7 @@ gtk_window_get_urgency_hint
 | 
			
		||||
gtk_window_get_accept_focus
 | 
			
		||||
gtk_window_get_focus_on_map
 | 
			
		||||
gtk_window_get_group
 | 
			
		||||
gtk_window_get_window_type
 | 
			
		||||
gtk_window_move
 | 
			
		||||
gtk_window_parse_geometry
 | 
			
		||||
gtk_window_reshow_with_initial_size
 | 
			
		||||
 | 
			
		||||
@ -5198,6 +5198,7 @@ gtk_window_get_title
 | 
			
		||||
gtk_window_get_transient_for
 | 
			
		||||
gtk_window_get_type G_GNUC_CONST
 | 
			
		||||
gtk_window_get_type_hint
 | 
			
		||||
gtk_window_get_window_type
 | 
			
		||||
gtk_window_group_add_window
 | 
			
		||||
gtk_window_group_get_type G_GNUC_CONST
 | 
			
		||||
gtk_window_group_new
 | 
			
		||||
 | 
			
		||||
@ -8409,6 +8409,24 @@ gtk_window_set_auto_startup_notification (gboolean setting)
 | 
			
		||||
  disable_startup_notification = !setting;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * gtk_window_get_window_type:
 | 
			
		||||
 * @window: a #GtkWindow
 | 
			
		||||
 *
 | 
			
		||||
 * Gets the type of the window. See #GtkWindowType.
 | 
			
		||||
 *
 | 
			
		||||
 * Return value: the type of the window
 | 
			
		||||
 *
 | 
			
		||||
 * Since: 2.20
 | 
			
		||||
 **/
 | 
			
		||||
GtkWindowType
 | 
			
		||||
gtk_window_get_window_type (GtkWindow *window)
 | 
			
		||||
{
 | 
			
		||||
  g_return_val_if_fail (GTK_IS_WINDOW (window), GTK_WINDOW_TOPLEVEL);
 | 
			
		||||
 | 
			
		||||
  return window->type;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#if defined (G_OS_WIN32) && !defined (_WIN64)
 | 
			
		||||
 | 
			
		||||
#undef gtk_window_set_icon_from_file
 | 
			
		||||
 | 
			
		||||
@ -385,6 +385,8 @@ GtkWindowGroup *gtk_window_get_group (GtkWindow   *window);
 | 
			
		||||
/* Ignore this unless you are writing a GUI builder */
 | 
			
		||||
void     gtk_window_reshow_with_initial_size (GtkWindow *window);
 | 
			
		||||
 | 
			
		||||
GtkWindowType gtk_window_get_window_type     (GtkWindow     *window);
 | 
			
		||||
 | 
			
		||||
/* Window groups
 | 
			
		||||
 */
 | 
			
		||||
GType            gtk_window_group_get_type      (void) G_GNUC_CONST;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user