Beispiel #1
0
static void
test_info_bar_basic (void)
{
  GtkWidget *infobar;

  infobar = gtk_info_bar_new ();
  g_assert (GTK_IS_INFO_BAR (infobar));
  gtk_widget_destroy (infobar);
}
const GeditEncoding *
gedit_conversion_error_message_area_get_encoding (GtkWidget *message_area)
{
	gpointer menu;

#if !GTK_CHECK_VERSION (2, 17, 1)
	g_return_val_if_fail (GEDIT_IS_MESSAGE_AREA (message_area), NULL);
#else
	g_return_val_if_fail (GTK_IS_INFO_BAR (message_area), NULL);
#endif

	menu = g_object_get_data (G_OBJECT (message_area), 
				  "gedit-message-area-encoding-menu");	
	g_return_val_if_fail (menu, NULL);
	
	return gedit_encodings_combo_box_get_selected_encoding
					(GEDIT_ENCODINGS_COMBO_BOX (menu));
}