~elementary-apps/scratch/scratch

« back to all changes in this revision

Viewing changes to src/Services/TemplateManager.vala

  • Committer: RabbitBot
  • Author(s): ffabio-96-x, ffabio-96-x
  • Date: 2014-10-05 03:10:08 UTC
  • mfrom: (1355.2.3 fix-1337291)
  • Revision ID: rabbitbot-20141005031008-ffcfazehgt9h1tfu
* Replace deprecated Granite.LightWindow with Gtk.Dialog in TemplateManager
* Replace deprecated Granite.SearchBar with Gtk.SearchEntry in SearchManager

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
 **/
210
210
public class Scratch.TemplateManager : GLib.Object {
211
211
    
212
 
    private Granite.Widgets.LightWindow dialog;
 
212
    private Gtk.Dialog dialog;
213
213
    
214
214
    private Scratch.Template current_template;
215
215
    
227
227
    public signal void template_loaded (Template template, File file);
228
228
    
229
229
    public TemplateManager () {
230
 
        dialog = new Granite.Widgets.LightWindow (_("Templates"));
 
230
        dialog = new Gtk.Dialog ();
 
231
        dialog.title = _("Templates");
231
232
        
232
233
        this.grid = new Gtk.Grid ();
233
234
        this.grid.margin = 5;
267
268
        button.clicked.connect (() => {
268
269
            current_template = (Scratch.Template) Object.new (template_type);
269
270
            this.dialog.hide ();
270
 
            var window = new Granite.Widgets.LightWindow (label);
 
271
            var window = new Gtk.Dialog ();
 
272
            window.title = label;
271
273
            if (parent != null) window.set_transient_for ((Gtk.Window)parent);
272
274
            window.add (current_template.get_creation_box ());
273
275
            window.show_all ();
305
307
            dialog.show_all ();
306
308
        }
307
309
    }
308
 
}
 
310
}
 
 
b'\\ No newline at end of file'