tweak: add WIDTH and HEIGHT features.
This commit is contained in:
parent
19d8b63387
commit
235e535008
|
@ -28,6 +28,8 @@
|
||||||
#define ZOOM 1 /* Starting zoom level */
|
#define ZOOM 1 /* Starting zoom level */
|
||||||
#define ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */
|
#define ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */
|
||||||
#define BG_COLOR "#1E1E2E"
|
#define BG_COLOR "#1E1E2E"
|
||||||
|
#define WIDTH 500
|
||||||
|
#define HEIGHT 400
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
goback,
|
goback,
|
||||||
|
@ -74,3 +76,4 @@ static struct {
|
||||||
{ CTRL, KEY(n), finder_next },
|
{ CTRL, KEY(n), finder_next },
|
||||||
{ CTRL | SFT, KEY(N), finder_prev }
|
{ CTRL | SFT, KEY(N), finder_prev }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
5
rose.c
5
rose.c
|
@ -297,7 +297,10 @@ void setup(GtkNotebook *notebook, const char *uri)
|
||||||
search_buf = GTK_ENTRY_BUFFER(gtk_entry_buffer_new("", 0));
|
search_buf = GTK_ENTRY_BUFFER(gtk_entry_buffer_new("", 0));
|
||||||
search = GTK_ENTRY(gtk_entry_new_with_buffer(search_buf));
|
search = GTK_ENTRY(gtk_entry_new_with_buffer(search_buf));
|
||||||
|
|
||||||
gtk_window_fullscreen(window);
|
// gtk_window_fullscreen(window);
|
||||||
|
gtk_window_set_default_size(window, WIDTH, HEIGHT);
|
||||||
|
// gtk_window_set_resizable (window, FALSE);
|
||||||
|
|
||||||
window_init(notebook);
|
window_init(notebook);
|
||||||
notebook_init(notebook, uri);
|
notebook_init(notebook, uri);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Exec= /usr/bin/rose
|
Exec= /usr/bin/rose "https://duckduckgo.com"
|
||||||
Name=Rose
|
Name=Rose
|
||||||
Comment=Minimalistic browser
|
Comment=Minimalistic browser
|
||||||
Icon=/home/loki/Documents/core/software/fresh/linux/rose/ubuntu-stuff/rose.png
|
Icon=/home/loki/Documents/core/software/fresh/linux/rose/ubuntu-stuff/rose.png
|
||||||
|
|
Loading…
Reference in New Issue
Block a user