Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 390727 - Replace gtk_font_selection_dialog_set_font_name with GtkFontChooser
Summary: Replace gtk_font_selection_dialog_set_font_name with GtkFontChooser
Status: CLOSED DUPLICATE of bug 390864
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-09-28 15:55 EDT by Anatoly Spektor CLA
Modified: 2012-10-01 15:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Spektor CLA 2012-09-28 15:55:22 EDT
This patch replaces gtk_font_selection_dialog_set_font_name with gtk_font_chooser_set_font for GTK+ 3.2 and higher:

http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gtk3_set_font
Comment 1 Alexander Kurtakov CLA 2012-10-01 14:14:04 EDT
This patch passes GtkFontSelectionDialog as created by gtk_font_selection_dialog_new to gtk_font_chooser_set_font which expects GtkFontChooser. 
To use gtk_font_chooser_set_font handle has to be initiated by calling gtk_font_chooser_dialog_new.
Comment 2 Anatoly Spektor CLA 2012-10-01 15:26:22 EDT
(In reply to comment #1)
> This patch passes GtkFontSelectionDialog as created by
> gtk_font_selection_dialog_new to gtk_font_chooser_set_font which expects
> GtkFontChooser. 
> To use gtk_font_chooser_set_font handle has to be initiated by calling
> gtk_font_chooser_dialog_new.

Thank you for pointing this out,

 I've decided to put all GtkFontChooser methods that replace GtkFontSelection methods in one patch, to avoid putting bug dependencies. 

For this reason I am closing both this bug and 390726 and opening one bug with patch for all GtkFontSelection/GtkFontChooser methods.
Comment 3 Anatoly Spektor CLA 2012-10-01 15:32:02 EDT
Please refer to this bug with a patch instead:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=390864

*** This bug has been marked as a duplicate of bug 390864 ***